I am attempting to pass arguments (only one till I get this working) to a VBScript function. This function is for my SELECT tag and the onChange event. The text value I want to pass is NOT from the form, but from the .ASP itself. I need this value inside my scripted function for some conditional testing.
The code is simple: When user selects from the list, set the next field automatically to the appropriate value! I have tested the code without the arg (by setting a Dimensioned var manually inside the function and it works.
However, when I truly test my code, I get the text "[object]" in the field that I am trying to auto-set. I have searched and searched and have not found a solid example of how to properly pass args from a select tags onchange="someFunc(<%=arg%>)" or what [object] is trying to tell me.
If I view the source code, I can see the correct value in the arg position, but the other field always gets populated with [object]. Not sure what I need to do.
I'm trying with this question before sending code to see if the answer is closer than I think. If necessary I'll paste some code in. Thanks in advance, Jonathan.
The code is simple: When user selects from the list, set the next field automatically to the appropriate value! I have tested the code without the arg (by setting a Dimensioned var manually inside the function and it works.
However, when I truly test my code, I get the text "[object]" in the field that I am trying to auto-set. I have searched and searched and have not found a solid example of how to properly pass args from a select tags onchange="someFunc(<%=arg%>)" or what [object] is trying to tell me.
If I view the source code, I can see the correct value in the arg position, but the other field always gets populated with [object]. Not sure what I need to do.
I'm trying with this question before sending code to see if the answer is closer than I think. If necessary I'll paste some code in. Thanks in advance, Jonathan.