Claude Schneegans wrote:
>  >>So I tried using JSStringFormat
> 
> The problem here is not with Javascript, but with the URL, so you should 
> use the CF URLEncodedFormat
> function.
> Note that, even after the string is URLEncoded, it might not be a bad 
> idea to use JSStringFormat as well.
> 

Actually.. .it is the string within the javascript call because the 
string contains a quote.  It all works fine as long as the string does 
not contain a quote.

At any rate, I tried your suggestion and it does not work.  Causes a 
javascript error, unterminated string literal.

here is hte error from the firefox javascript console:

Error: unterminated string literal
Source File: javascript:didetail('%260I%3EHL%289%5B%0A');
Line: 1, Column: 9
Source Code:
didetail('&0I>HL(9[

That line is generated as such:

<A 
HREF="javascript:didetail('<cfoutput>#JSStringFormat(URLEncodedFormat(encrypt("UDVBIE","(my
 
key)")))#</cfoutput>');">

The javascript function itself does the url encoding when it creates the 
url by using the escape() function.. but I'm not getting to the 
javascript function because the call to the function is failing.

At least with my current solution, it works most of the time ;)

rick




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229904
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to