might help, and you can simplify the function by passing a data
object:
function doData(_data){
$("#doContainer").empty();
$.get("doData.php", _data, function (response) {
$("#doContainer").html( $(response) );
}
});
}
doData({p_id: 'abc', cat: 20, cat_id: 'bcd', first: 1, last: 9});
Posting a working sample page would give you better help.
On Jan 1, 7: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.
No comments:
Post a Comment