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

Popup Window within response.write statement

Status
Not open for further replies.

bamundsen

IS-IT--Management
Dec 5, 2001
58
US
Code:
Response.Write(tablerow & tablecolumn & langCheckoutCVN & tablecolumnend & "<td><input size=3 name=strOcardCVN value=" & Chr(34) & strOcardCVN & Chr(34) & "><a href='popup_page.asp' class='ccCSV' onClick='window.open(this.href, 'popup_page', 'TOP=0,LEFT=0,WIDTH=320,HEIGHT=266,RESIZABLE=no,SCROLLBARS=no,TOOLBAR=0,LOCATION=0,DIRECTORIES=0,STATUS=0,menubar=0,resizable=0'); return false;'>More Info</a></td></tr>")

I am trying to add a pop-up window on a credit card payment page. For some reason the browser does not recognize the link. I can click on the link, but nothing happens. Any ideas?? I am completely stumped. Any help would be greatly appreciated.

Thanks,

Brett
 
Sorry, the post did not display correctly

Code:
Response.Write(tablerow & tablecolumn & langCheckoutCVN & tablecolumnend & "<td>
<input size=3 name=strOcardCVN value=" & Chr(34) & strOcardCVN & Chr(34) & ">
<a href='popup_page.asp' class='ccCSV' onClick='window.open(this.href, 'popup_page',
 'TOP=0,LEFT=0,WIDTH=320,HEIGHT=266,RESIZABLE=no,SCROLLBARS=no,TOOLBAR=0,LOCATION=0,DIRECTORIES=0,
STATUS=0,menubar=0,resizable=0'); return false;'>More Info</a></td></tr>")
 
Build the string with escaped double quotes around the window.open arguments.
Code:
...
onClick='window.open(this.href, \"popup_page\",
\"TOP=0, ... ,resizable=0\"); return false;'
...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top