I am using :
function ajax(u,s,t) {
jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t==':eval') eval(msg); else document.getElementById(t).innerHTML=msg; } });
}
This works fine with FF but with IE it doesn’t work is there somthing wrong I did?
Thanks in advance.
If you are using jQuery why are you still manipulating the DOM manually? Try cleaning your code. Also there are strange things in your success callback. What is this
tvariable? Once you are using it as element ID and also testing it’s value foreval. By the way you should avoid usingeval.I would probably replace all this with the
.load()function: