Hi Gurus,
I am trying to set a variable that is located within a window.open statement on the same page. The window.open statement looks like this:
onClick="window.open('<%RSBUSINESS%>&item_name=<%RSITEM%>&on0=???
Variables business and itemname are set by data coming from a database.
Variable on0 is the one that is giving me the problem.
I need to load variable on0 with the input of a textbox on the same page, the text box that looks like this:
<input type="hidden" name="on0"></td>
I tried using the session variable but it only works if I hard code the value like this:
<%Dim n
n = 17
If (Session("Session_1") = "") Then
Session("Session_1") = 0
Else
Session ("Session_1") = n
End If
%>
I would like to have n be set with the input of the textbox on0. Rather than hardcoding the 17.
This code works when I hardcode n, in other words when the new window opens the value of 17 is there.
To put it plainly, I want to pass the input from hidden textbox on0 to variable n . Once that is done I will add it to the session and set the on0 in the window.open statement equal to the session. That part works...
Thanks for your help
I am trying to set a variable that is located within a window.open statement on the same page. The window.open statement looks like this:
onClick="window.open('<%RSBUSINESS%>&item_name=<%RSITEM%>&on0=???
Variables business and itemname are set by data coming from a database.
Variable on0 is the one that is giving me the problem.
I need to load variable on0 with the input of a textbox on the same page, the text box that looks like this:
<input type="hidden" name="on0"></td>
I tried using the session variable but it only works if I hard code the value like this:
<%Dim n
n = 17
If (Session("Session_1") = "") Then
Session("Session_1") = 0
Else
Session ("Session_1") = n
End If
%>
I would like to have n be set with the input of the textbox on0. Rather than hardcoding the 17.
This code works when I hardcode n, in other words when the new window opens the value of 17 is there.
To put it plainly, I want to pass the input from hidden textbox on0 to variable n . Once that is done I will add it to the session and set the on0 in the window.open statement equal to the session. That part works...
Thanks for your help