Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
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);')"">")
  #3 (permalink)  
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?
  #4 (permalink)  
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?
  #5 (permalink)  
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
  #6 (permalink)  
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:14 PM.


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