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

Javascript popup in response.write not working

Status
Not open for further replies.

hpadwal

Programmer
Feb 6, 2006
57
GB
hello all,

i have the following button which is executein inside a asp response.write function but the queurystring ios not passing.

Code:
.Write "<td align=""right""><input type=""button"" name=""btnEmail"" value="" Send Email "" style=""width:100px;"" onClick=""javascript:popUp('sendmail.asp?submissionid="" & submissionID & "" )"" /> </td>"

Can you help

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

To be successful inlife, you must thing your less then the person next to you.

 
[tt]
.Write "<td align=""right""><input type=""button"" name=""btnEmail"" value="" Send Email "" style=""width:100px;"" onClick=""[highlight]p[/highlight]opUp('sendmail.asp?submissionid=[COLOR=red yellow]"[/color] & submissionID & [COLOR=red yellow]"'[/color] )"" /> </td>"
[/tt]

 
im getting the following error

Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'submissionID'

D:\WEBSITES\PROD03\ASSISTANT\../_inc/_submission.asp, line 284



works fine as a link! but need a button:(


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

To be successful inlife, you must thing your less then the person next to you.

 
submissionID should be your server-side variable at response.write time, else I would have missed something for sure. What is it?
 
its a interger a primary key to identify unique records 542 for example

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

To be successful inlife, you must thing your less then the person next to you.

 
do you have option explicit on? if so (which you should) are you declaring the variable



General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top