Hi all,
I have a web page that is written in asp/vbscript. It is used for people in the field to log onto and enter product id's, quantities and location information.
I was asked to change the page, so that when the person types in the product id and tabs to the next field, the product description would show. The only way I could do that was to have the same page re-load after all of the id's were typed in and the user would then click a button and the descriptions would appear.
Poking around, I found the onBlur function and tried to implement that. I finally got that to work, but I came up to two problems.
This is the code for putting the text box on the page :
response.write("<td class=""detaill""><input type=""text""
onChange=""clr()"" name=""txtID_" & x & """ size=""10"" value=" &
Request.Form("txtID_" & x) & "></td>")
x will be a number 1 thru 20, so I can have 20 text boxes on the screen.
The first problem is when I get to the clr() function, how can I know what the field name of the text box is? txtID_1, txtid_2, etc.
Second, the function to connect to the database and retrieve the description is in vbscript. Since I do not know that much about jscript and I need to have this done by the end of this month, is there a way to call a vbscript function from the jscript function?
Thank you for you help.
George
I have a web page that is written in asp/vbscript. It is used for people in the field to log onto and enter product id's, quantities and location information.
I was asked to change the page, so that when the person types in the product id and tabs to the next field, the product description would show. The only way I could do that was to have the same page re-load after all of the id's were typed in and the user would then click a button and the descriptions would appear.
Poking around, I found the onBlur function and tried to implement that. I finally got that to work, but I came up to two problems.
This is the code for putting the text box on the page :
response.write("<td class=""detaill""><input type=""text""
onChange=""clr()"" name=""txtID_" & x & """ size=""10"" value=" &
Request.Form("txtID_" & x) & "></td>")
x will be a number 1 thru 20, so I can have 20 text boxes on the screen.
The first problem is when I get to the clr() function, how can I know what the field name of the text box is? txtID_1, txtid_2, etc.
Second, the function to connect to the database and retrieve the description is in vbscript. Since I do not know that much about jscript and I need to have this done by the end of this month, is there a way to call a vbscript function from the jscript function?
Thank you for you help.
George