Take off the single quotes around the following line and it works fine in IE

<CFSET myVar = '"Law Office(s) / Chamber(S)"'>

Make it like this:

<CFSET myVar = "Law Office(s) / Chamber(S)">


-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 9:31 PM
To: CF-Talk
Subject: JSStringFormat Function


Curious as to why this throws a error and what can be done to avoid it, just
escape out quotes?

<cfset myVar = '"Law Office(s) / Chamber(s) Of"'>
<cfoutput>
 <a href="" onmouseover="window.status='#JSStringFormat(myVar)#'; return
true;" onmouseout="window.status=''; return true;" style="font-family:
Arial, Helvetica, sans-serif; font-size: 10pt; color: Black; text-decoration
: none;">Test</a>
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to