archux Posted September 26, 2007 Report Share Posted September 26, 2007 Labvakar! Ka var uztaisīt šādu fintu: Kamēr dati lādējās rāda Lūdz uzgaidiet! un kad ielādē parādās lapa! Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 27, 2007 Report Share Posted September 27, 2007 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 More sharing options...
Val Posted September 27, 2007 Report Share Posted September 27, 2007 Grey_Wolf: tev T burts dažkārt nedarbojas :) Link to comment Share on other sites More sharing options...
korkijs Posted September 27, 2007 Report Share Posted September 27, 2007 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 More sharing options...
Grey_Wolf Posted September 27, 2007 Report Share Posted September 27, 2007 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 More sharing options...
v3rb0 Posted September 27, 2007 Report Share Posted September 27, 2007 (edited) 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 September 27, 2007 by v3rb0 Link to comment Share on other sites More sharing options...
Recommended Posts