PDA

View Full Version : Execute Javascript within VBscript



ismailc
10-14-2008, 07:10 AM
Hi, I need help please:

The foll code works within a WebTextEdit - ClientSideEvents: (javascript)
var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';

I need to execute this code within a VBscript code window:

I would like to add the above code & set the WebTextEdit object:

If "aObjects("FG1010NItemD")" = "avar1" then

var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';

End If

Please Assist, Regards