reiniger Posted November 3, 2010 Report Share Posted November 3, 2010 (edited) Kaut kada divainiba. Šādi mans kods nestradā! function moveObj(tableval, IDval, wayval){ $.post("move.php", {table: tableval, idv: IDval, way: wayval}); window.location.reload(); } Bet šādi strādā function moveObj(tableval, IDval, wayval){ $.post("move.php", {table: tableval, idv: IDval, way: wayval}); window.location.reload(); alert('strada'); } Kas par problēmu ka bez alert nestrādā? Viss kārtībā tagad strādā! noņēmuu nost window.location.reload(); Edited November 3, 2010 by reiniger Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 4, 2010 Report Share Posted November 4, 2010 AJAX pamata ideja jau ir, lai sazinātos ar serveri, nepārlādējot lapu :) Quote Link to comment Share on other sites More sharing options...
0 codez Posted November 4, 2010 Report Share Posted November 4, 2010 Ja gribi aizsūtīt ar ajax datus un pēc tam pārlādēt lapu, tad pārlādi taisi ajax post-a callback funkcijā. $.post('lolat.php',{data:data},function(){ window.location.reload(); },'text'); Quote Link to comment Share on other sites More sharing options...
Question
reiniger
Kaut kada divainiba.
Šādi mans kods nestradā!
Bet šādi strādā
Kas par problēmu ka bez alert nestrādā?
Viss kārtībā tagad strādā! noņēmuu nost window.location.reload();
Edited by reinigerLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.