Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2005, 01:06 PM
Registered User
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript popup window with ASP variable

I have an asp page which reads records from a database and builds up a table. Part of this table has an input button which calls a javascript function called popupwin, passes across the url and other stuff.

The main problem I have is that I am trying to pass across an asp variable called strRoomTypeCode but I am having no luck.

Code;
<input class=classbuttontiny onclick="javascript:popupWin('roomdetails.asp?room code=' <%=strRoomTypeCode%>,640,500,'yes')" type=button value=L>

If I omit the <%=strRoomTypeCode%>, it works fine but obviously does not pass across this variable.

If I leave this code in I just get the appearance of a button being pushing in and nothing else.

Help would be great.

Any help would be great.

 
Old February 24th, 2005, 01:13 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

I think u should use

Code;
<input class=classbuttontiny onclick="javascript:popupWin('roomdetails.asp?room code=<%=strRoomTypeCode%>',640,500,'yes');" type=button value=L>


Om Prakash
 
Old February 24th, 2005, 01:17 PM
Registered User
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Excellent. That works Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript : window.open -> Popup Blocker Issue AbrarNazeer Pro JSP 0 September 2nd, 2006 05:49 AM
Popup window from javascript arnabghosh Javascript How-To 1 March 2nd, 2006 10:17 AM
Popup window from Javascript arnabghosh Javascript 3 March 1st, 2006 01:09 AM
Javascript submit form to popup window don_t Javascript 1 December 23rd, 2005 07:18 AM
Thank you popup window after asp submit? kbuska Classic ASP Basics 1 September 20th, 2004 06:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.