Testcase for jQuery Ticket 7586
Load html with script tags
by jitter
HTML
<div id="output"></div>
<div id="output2"></div>
JavaScript
$.ajax({
url: "/echo/html/",
type: "POST",
dataType: "html",
data: {
html: '<p>Some text</p><script type="text/fbml">Some non text/javascript script</scr'+'ipt>'
},
success: function( data ) {
alert( $("#output").html( data ).html() );
}
});
$("#output2").load("/echo/html/", {
html: '<p>Some text</p><script type="text/fbml">Some other non text/javascript script</scr'+'ipt>'
}, function() {
alert( $("#output2").html() );
});