2016-07-08 38 views
6
$('#demo').html('<img src="/parcel-pricer/img/ajax-loader.gif" style="margin-left:50px;width:20%;margin-bottom:10px;">'); 
$('#demo').show(); 
$('#demo').load('fast.php?send='+send+'&delv='+delv+'&quant='+quant+'&weight='+weight+'&length='+length+'&width='+width+'&height='+height+'&send1='+send1+'&delv1='+delv1+'&value='+value+'&country_send='+country_send+'&country_delv='+country_delv); 
$('#demo1').html('<img src="/parcel-pricer/img/ajax-loader.gif" style="margin-left:50px;width:20%;margin-bottom:10px;">'); 
$('#demo1').show(); 
$('#demo1').load('Timed.php?send='+send+'&delv='+delv+'&quant='+quant+'&weight='+weight+'&length='+length+'&width='+width+'&height='+height+'&send1='+send1+'&delv1='+delv1+'&value='+value+'&country_send='+country_send+'&country_delv='+country_delv); 

.load() işlevini kullanarak birden çok php dosyasını yüklüyorum. tüm dosya bir süre için yük ancak php dosyası bir kerede bir kez yükünü yüklemez .. bu yüzden plz nasıl ???php dosyasını tek tek yükleme?

+0

Muhtemelen kullandığınız oturumları ve her php script oturumu kilitler. her birinde 'session_write_close()' ı deneyin. –

cevap

6

callbacks gibi kullanarak deneyin: çalışır durumdayken

//load to first target div 
$("#target_1").load("url_1", function() { 
    //load to second target div 
    $("#target_2").load("url_2", function() { 
     ... and so on if any 
    }); 
}); 
+0

Teşekkürler çalışıyorum .. –

+0

Sevindim :) –

İlgili konular