Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access DOM from VBScript?

Status
Not open for further replies.

morrigan3399

Programmer
Jul 12, 2002
1
CA
I have a form called "boxform" in my asp page, and I can access it from the JavaScript code:

ckstartday = document.boxform.startday.value

but when I try to access it from my VBScript code:

document.boxform.minlat.value = 10

I get the following error message:

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'document'

Can anyone tell me why my page does not recognize "document"? How can I set form values from vbscript?

Thanks.
 
It looks like you are doing everything OK to me. Can you post the entire <Script></script> so I can see what you are doing?

Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top