This topic is locked
[SOLVED]

 Access variable on edit page

12/15/2013 3:54:04 PM
PHPRunner General questions
T
Tempus_Erus author

Hi,
I have checked the forum and various sites trying to solve:
I have a numeric value on edit page, say 10: Its ID is 'value_calcvarID_1' according to firebug.
How can I access this variable value ?
I have .....
<script type=text/javascript>
document.getElementById("value_calcvar_1").value = newvariable;
Any ideas one again would be much appreciated....
TIA

T
Tempus_Erus author 12/16/2013



http://xlinesoft.com/phprunner/docs/ctrl_getvalue.htm


Thanks Sergey. Tried this already and I cannot access the variable using visual editor and custom JS?

Sergey Kornilov admin 12/16/2013

Have no idea what "cannot access the variable using visual editor and custom JS" means. Javascript specifically designed to take care of field naming, load time (your Javascript won't work until page is fully loaded). It is also designed to survive changes in DOM structure between PHPRunner versions. Using something else just welcomes the trouble.