The way I set attributes/values right now is:
Code: Select all
Command1$ = "void(document.forms[0].[InputField-NAME].value='NewText');" ; example for setting the text of an Input-Element
Command2$ = "void(document.forms[0].[CheckBox-NAME].checked='1');" ; example for checking a CheckBox
Command3$ = "void(document.forms[0].[Button-NAME].click());" ; example for clicking a Button (an Input-Submit-Element)
SetGadgetText(#Gad_WebGadget, "javascript:" + Command3$)
SetGadgetState(#Gad_WebGadget, #PB_Web_Back)
What I was not able to find out, is:
- how to set attributes/values of more complex Elements (like a TABLE > ITEM > FIELD).
- and even more important for me - how to READ values from Elements (like INPUT or specific FIELDS out of a TABLE)
Does anyone has an Idea how this could be done?