Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello thr, am using vbscript in asp and all the events are responding
whn i open in IE but using other browser they are not. i understand
tat using javascript will solve the problem. here is my vbscript
< language= vbscript>
thisform.someobject1.someproperty=thisform.someobject2.someproperty
</script>

i need an equivalent jscript or javascript.
Thanks :)
Posted

1 solution

Well, what did you expect? Yes, VBScript is supported my Microsoft only and generally considered orphaned. See http://en.wikipedia.org/wiki/VBScript[^], http://www.devx.com/DevX/Article/15821[^].

You have a good reason to switch to Javascript/ECMAScript. :-)

Instead of the syntax you use, do this:

HTML
document.getElementById("myFormId").SomeProperty =
   document.getElementById("myObjectId").SomeProperty;


Assume you define the attribute id="myFormId" or id="myObjectId", etc., on the elements you want to access.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900