[jQuery] Jquery call strips away "<script>" tags

[jQuery] Jquery call strips away "<script>" tags


Hello! have a jquery ajax call that returns some HTML that has javascript
code in it but it seems all the javascript is being stripped away. I read
somewhere that that is the way the jquery acts. Is there anyway around this?
I posted about the same topic last week but no one replied. HELP!
Here are two things I have tried that just have NOT worked (all HTML is
returned EXCEPT the javascript code):
# method 1:
$("#target_div").load(url);
msg = $.ajax({
            type: "POST",
            url: "http://localhost/myproject/getHtml.php",
            data: "id=" + id,
            async: false
            
}).responseText;
$("#target_div").html(msg);
Any help is treatly appreciated
--
View this message in context: http://www.nabble.com/Jquery-call-strips-away-%22%3Cscript%3E%22-tags-tf4876614s27240.html#a13954590
Sent from the jQuery General Discussion mailing list archive at Nabble.com.