I suppose I may be using CDATA incorrectly.  Using the entities as Eric
suggested works but I'd like to sort out a less tedious method if I can.  

Without the CDATA block, the script obviously breaks with an "unterminated
literal" js error.  When I wrap it in a CDATA block, the error is "missing }
in compound statement message" on line 59 of taconite.js.

Do I need to wrap the entire <eval> contents in CDATA, or can I include
CDATA around just the function in question?

<![CDATA[
        showMsg($("#customer_name input").val()+ " order "+
response.order_id +" successfully created. <a>View order</a>");
]]>


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Wednesday, March 07, 2007 10:14 AM
To: jQuery Discussion.
Subject: Re: [jQuery] html in taconite response

> showMsg($("#customer_name input").val()+ " order "+ response.order_id +"
> successfully created. <a>View order</a>");

Paul,

You do need to use a CDATA block for that code.  How did it fail when
you tried it?  Do you have a sample page?

Mike

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to