Hello,
Does scriptStep supports html DOM objects?
I need to add option element to select control on the page dynamically. For
this I am using
<scriptStep language="javascript" >
var new_option;
new_option = document.createElement('option');
new_option.value = "abc";
new_option.text = "123";
new_option.selected = true;
document.userForm.orgUnit.options.add(new_option, null);
</scriptStep>
This however fails with error
Error invoking script: org.mozilla.javascript.EcmaError: TypeError: Cannot
find function createElement in object HtmlHtml[<html>]
If I use document.getElementById it gives the same error. Any help on this
is appreciated.
Regards
Jaydeep
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.