Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Pass Variables to "Open Browser Window" ext

Posted 01 Mar 2002 11:29:49
1
has voted
01 Mar 2002 11:29:49 b w posted:
input type="button" name="Button" value="Search" onClick="MM_openBrWindow('/Payroll/Insert/CompletedInsertJ.asp?vmonth=request.form("selectMonth"&vyear=request.form("selectyear"','','')"
J DIVISION</p>

Anyone know how to correct this? I get a Unterminated String Constant Error.
I am trying to pass two list menu variables through a "Post method" with the button having NO action.

Side note: I got it working but it kept giving me the "Unterminated String Constant Error" so I kept trying other ways. I can't duplicate it anymore. However, If I pass it to the same original window it works.

I am sure it has to do with the code above for the search button. Anyone know javascript?Help!



Edited by - biffysix on 01 Mar 2002 11:32:29

Replies

Replied 01 Mar 2002 12:11:09
01 Mar 2002 12:11:09 Viktor Farcic replied:
You're missing '<%=' & '%>' signs. Try changing it to:
input type="button" name="Button" value="Search" onClick="MM_openBrWindow('/Payroll/Insert/CompletedInsertJ.asp?vmonth=<%=request.form("selectMonth"%>&vyear=<%=request.form("selectyear"%>','','')"

Viktor Farcic

TalkZone Manager
Replied 02 Mar 2002 02:45:32
02 Mar 2002 02:45:32 b w replied:
Thanks Viktor.
I still can not get the variables passed to the recordset and open the new window with the parameters. I figure the Open Browser window is just that without going to the server to post the variables.
I think I will pass the variables to the new browser and then do a submit and get the desired recordset.
However, if it can be done straight from the original browser just tell me and I'll try it again. ie get the parameters, open the new browser window and show the desired recordset with the parameters.



Edited by - biffysix on 02 Mar 2002 02:46:02

Reply to this topic