Thursday, January 1, 2009

[jQuery] Unable to populate my div in Firefox

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.

No comments: