Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 March 19th, 2004, 06:07 AM
Authorized User
 
Join Date: Oct 2003
Location: Glasgow, , United Kingdom.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Response.write

Hey

I'm using response.write to write the following html code within a While loop:

Response.Write("<select name='ServiceLeader' onChange=MM_callJS('setDynaList(arrDL1);')>")

The thing is for the onChange javascript function to work i need to encapsulate it between " and " ie:

Response.Write("<select name='ServiceLeader' onChange="MM_callJS('setDynaList(arrDL1);')">")

How do i get a " into the statement without closing the string??

Any help will be much appreciated.

Cheers in advance.
 
Old March 19th, 2004, 06:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Just double up the " character
Code:
Response.Write("<select name='ServiceLeader' onChange=""MM_callJS('setDynaList(arrDL1);')"">")
 
Old March 19th, 2004, 06:29 AM
Authorized User
 
Join Date: Oct 2003
Location: Glasgow, , United Kingdom.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried it but it's still not displaying the " ", any more ideas?
 
Old March 19th, 2004, 06:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you post exactly what you tried, and exactly what was the output?
 
Old March 19th, 2004, 06:34 AM
Authorized User
 
Join Date: Oct 2003
Location: Glasgow, , United Kingdom.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry it does work, my fault. thanks for your help mate
 
Old March 19th, 2004, 06:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

:D




Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.Write won't work? Ron Howerton JSP Basics 1 March 23rd, 2007 07:39 AM
response.write crmpicco Classic ASP Basics 1 January 27th, 2005 06:31 PM
response.write netcrawler Classic ASP Databases 4 September 29th, 2004 10:13 AM
Response.Write an SSI hcweb Classic ASP Basics 2 November 2nd, 2003 05:21 PM





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