This topic is locked

ID vs NAME for GetElementByID

4/30/2009 11:48:04 AM
PHPRunner General questions
G
gluckett author

Hi, I have a form item, valueLATITUDE. I want to refer to it in JavaScript in IE, FireFox, and Safari. But since all the "value" items in PHPRUNNER only use the "NAME" and not the "ID" it only works in IE.
Is there an easy way to ensure all the php pages have ID=value_LATITUDE AND NAME=value_LATITUDE?? (not just NAME).
thanks

gordon
ps. PHP Runner puts the input box in like the following:
<input type="text" name="value_PT_LAT" value="-45.5">
I would like the following:
<input type="text" id="value_PT_LAT" name="value_PT_LAT" value="-45.5">

J
Jane 5/4/2009

Gordon,
check BuildEditControl function in the generated include/commonfunctions.php file.

For example find and edit following code:

echo '<input type="text" name="'.$cfield.'" ...

G
gluckett author 6/1/2009

Thanks! That did it. My FireFox and Safari wanted the GetElementByID to have an "ID" not a name.
regards

gordon

Gordon,

check BuildEditControl function in the generated include/commonfunctions.php file.

For example find and edit following code:

echo '<input type="text" name="'.$cfield.'" ...