[jQuery] Having trouble loading HTML when it contains Javascript
Hi,
I'm having a problem on PC IE 7 only. For certain parts of my page,
I'm loading them when triggered by a user interaction:
$.post('get_file_contents.php',
{id:p_id},
function(data){
$("#"+p_id).empty().append("<div class=
\"itemWrapper\">" + data + "</div>");
However, if "data" contains Javascript code, IE consistently gives me
syntax errors. Firefox does not give me these errors and works
normally. Is there another way I should be loading the data if the
data contains Javascript?
Thanks, - Dave