try this: function doData(p_id,cat,cat_id,first,last){ var url = "doData.php?p_id="+ p_id +"&cat="+ cat +"&cat_id=" + cat_id; $('#doContainer').empty().load(url,function(htmlData,result)); if(result=="success"){ $(this).html(htmlData); }else{ $(this).html("ERROR LOADING "+url); } }
On Thu, Jan 1, 2009 at 10:06 AM, sho...@ckwi.net <sho...@ckwi.net> wrote: > > i m getting strange problem. i m unable to pupulate my div in Firefox > Mozilla. but in IE i m getting no problem. > > i m using following function. > > function doData(p_id,cat,cat_id,first,last){ > > document.getElementById("doContainer").innerHTML=""; > > $.ajax({ > url : "doData.php?p_id="+ p_id +"&cat="+ cat +"&cat_id=" + > cat_id , > success : function (data) { > $("#doContainer").html(data); // this is not working in > firefox > > > } > }); > } > > > $("#doContainer").html(data) is not working in firefox. plz give my > any alternative solution r assist me to get it done. as i m in trouble > due to this. >