Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How to selectively use Top/Bottom Text JavaScript., posted by John on Wed Dec 4 03:06:50 2019 
    icon2.gif   Re: How to selectively use Top/Bottom Text JavaScript., posted by Stefan Ritt on Wed Dec 4 10:15:56 2019 
       icon2.gif   Re: How to selectively use Top/Bottom Text JavaScript., posted by John on Wed Dec 4 20:39:41 2019 
Message ID: 69072     Entry time: Wed Dec 4 10:15:56 2019     In reply to: 69071     Reply to this: 69074
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Info  OS: Linux | Windows  ELOG Version: ELOG V3.1.4-ead 
Subject: Re: How to selectively use Top/Bottom Text JavaScript. 

In JS, you have access to the browser URL via window.location. So you can write conditional code depending on the actual elog command.

Stefan

John wrote:

I think I know what the answer(s) will be already.. that I will need to address this in JS. I don't want each screen to run/show the same code, other than the ones I want to.  AND I do not want to have to create a custom form for each 'menu option' to achieve this (if possible).

Thanx,

John

 

ELOG V3.1.5-fe60aaf