Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 September 15th, 2005, 03:11 PM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default inverted comma problems in ASP response.write

hey,
Have a problem here when getting my asp to dynamically write some html code. The code is to call a javascript function. The problem is with response.write everything has to be included in inverted commas but inside those inverted comma i've got to put more inverted commas round the call of the javascript function.
the error i'm getting is below and i understand why i'm getting it but how do i get around it!!! single commas wont get the function called...
thanks...

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/index.asp, line 295

response.write("<a href='ebrary.html' ONMOUSEOVER="popup('hello
---------------------------------------------------^

whats','lightgreen')"; ONMOUSEOUT="kill()"><img src='images/btnebrary.gif' align='top' border=0></a>")


 
Old September 15th, 2005, 05:55 PM
Authorized User
 
Join Date: Jul 2005
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how about this?
response.write("<a href='ebrary.html' ONMOUSEOVER=" & """" & _
    " popup(" & _



 
Old September 16th, 2005, 04:52 AM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot g2000, works perfectly!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem of inverted comma indikalk PHP FAQs 0 December 19th, 2006 11:47 PM
response.write(hyperlink) adolphus ASP.NET 1.0 and 1.1 Basics 7 September 11th, 2006 03:05 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 Sach Classic ASP Components 5 March 19th, 2004 06:40 AM





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