[jQuery] html in taconite response
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: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Mike Alsup
Sent: Wednesday, March 07, 2007 10:14 AM
To: jQuery Discussion.
Subject: Re: [jQuery] html in taconite response