bestboy7
دوشنبه 05 اسفند 1392, 09:31 صبح
توی افزونه های جوملا اگه واسه ajax از jQuery استفاده کنیم. نحوه آدرس دادن فایل php که میخوایم فراخوانی بشه چطوریه؟
من کد زیر رو نوشتم اما جواب نمیده.
$.ajax({url:"http://www.site.ir/modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});
$.ajax({url:"modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});
$.ajax({url:location.protocol + "//" + location.hostname+"modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});
من کد زیر رو نوشتم اما جواب نمیده.
$.ajax({url:"http://www.site.ir/modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});
$.ajax({url:"modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});
$.ajax({url:location.protocol + "//" + location.hostname+"modules/mod_example/assets/file.php",success:function(result){
$(".moduletable #div1t").html(result);
}});