ray Posted December 16, 2007 Report Share Posted December 16, 2007 (edited) Man ir šādi skripti index.php test_js.js test.php nesaprotu kur ir kļūda, ka xmlHttp.readyState==0, bet vajag 4. p.s. test_js.js 14. rindā ir "xmlHttp.onreadystatechange=test_f(lauks)" Edited December 16, 2007 by ray Link to comment Share on other sites More sharing options...
andrisp Posted December 16, 2007 Report Share Posted December 16, 2007 (edited) function test_f(lauks) { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById(lauks).innerHTML=xmlHttp.responseText } } xmlHttp aizvieto ar lauks. Kā arī - kas tas par xmlHttp.readyState=="complete" ? Cik zinu, tad readyState vērtības var būt tikai cipariskas. Edited December 16, 2007 by andrisp Link to comment Share on other sites More sharing options...
ray Posted December 16, 2007 Author Report Share Posted December 16, 2007 skripts ņemts no šejienes, tikai mazliet pamainīts un tur ir arī necipariska vērtība. Link to comment Share on other sites More sharing options...
Recommended Posts