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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable set to textbox in html using vbscript

Status
Not open for further replies.

holidayIT

IS-IT--Management
Apr 2, 2004
138
US
I am starting a new thread (from thread329-868542) in the hopes that someone may be able to help me.

I am using a vbscript to make the user enter a number in an input box when the page loads. i then need that number in a hidden field to be processed by another program when the user hits submit. i cannot but another button in there as the user will not press it. i would rather automate it. The code sits in the window_onload event, and it gives me the object required error. when i try it isolated and as a test, it works, but will not with the rest of the code (so therefore i know it isn't because the rest of the page has not processed).

But i am guessing a way to fix it is to run two actions from the submit button. right now it calls the "form action post". is there a way to make it process vbscript then call the "form action post" from a sub in vbscript?? or does anyone know a better solution???

 
if anyone is having this problem, i added a form name and did fomrname.textbox.value, and that worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top