I'm working on a basic jquery script allowing to get ads (banner + link OR external JS) from a database and then to print it on my page. I don't have any problem for ads of type "banner + link", but for external JS it's much more complicated. Here is an example of external JS stored in my database :
<script src="http://tracker.affistats.com/tag.php?id=a2416b4813c411276e2f2g5h204i27k8"></script> Here is the part of my code that is giving me trouble $("div#MyContainer p.ad").load(root_url+"/_lib/ajax.php", { ajaxAction: "getAd", id_page: 345 }); I also tried this piece of code $.get(root_url+"/_lib/ajax.php",{ ajaxAction: "getAd", id_page: 345 },function(data) { $("div#MyContainer p.ad").empty().append(data); }); I think the problem is that the external javascript code is evaluated. How can I avoit such a script to be evaluated ? Any tips or help would be appreciated :-/ -- View this message in context: http://www.nabble.com/Load-Data-with-an-external-javascript-tf3999516s15494.html#a11358994 Sent from the JQuery mailing list archive at Nabble.com.