Jump to content
php.lv forumi

dati ladejas bet tikmewr rada please wite


archux

Recommended Posts

IMPHO lai sradaatu pilniigi koreki tikai AJAX....

nu vel var megjinaat kjimikjo ar DIV iem....

apmeram....

<div id="aaa" style=""display:block">Lapa ladejaas</div>
<div syle="display:none" id="saturs">
e visa lapa pilniibaa....</div>
<script>
documen.geelemenByid('aaa').syle.display="none";
documen.geelemenByid('saturs').syle.display="block";
</scrip>

Tobish doma sada... pirmo paradam to uzraksu, pectam ladejam lapu un pashas beigaas to ar JS paradam...

tik nesmu parliecinats cik koreki shis varints nostraadaas....

Link to comment
Share on other sites

Lietojot prototype ajax: (http://www.prototypejs.org/download)

 

<script language="JavaScript" type="text/javascript" src="prototype.js"></script>
<div id="saturs">Lūdz uzgaidiet!</div>
<script type="text/javascript">
new Ajax.Request('/fails_ar_parastu_datu_izvadi.php',
 {
method:'get',
onSuccess: function(transport){ document.getElementById('saturs').innerHTML= transport.responseText; }
 }
);
</script>

 

http://www.prototypejs.org/learn/introduction-to-ajax

Link to comment
Share on other sites

Grey_Wolf: tev T burts dažkārt nedarbojas :)

Jaa maajas klavierei vinsh cheraas :(

(arii atstarpe dazreiz pazuud..)

censhos jau skatiities vai ierakstijaas, bet dazreiz pasliid garaam.... :(

P.S. tas saucaas nelaidied bernus ar sulas pacinju(cepumiem utt.) pie kompjutera ;)

Link to comment
Share on other sites

ja prototype.js, tad var arī to pašu pierakstīt "prototaipīgāk" :)

<script type="text/javascript">
Event.observe(window, "load", function(){
new Ajax.Updater("saturs", "/fails_ar_parastu_datu_izvadi.php",{method:'get'});
});
</script>
<div id="saturs">Lūdzu uzgaidiet</div>

Edited by v3rb0
Link to comment
Share on other sites

×
×
  • Create New...