tomaac Posted January 8, 2008 Report Share Posted January 8, 2008 Laikam triviāls jautājums, tomēr nevaru saprast kā to izdarīt: Vajaga doto logu refreshot bez POST-a (ja iepriekš bijis POSTS, tad lai tas netiek ņemts). Tātad es iegūstu tekošās lapas URLi. Un tagad nemāku pārlādēt doto lapu. Link to comment Share on other sites More sharing options...
Aleksejs Posted January 8, 2008 Report Share Posted January 8, 2008 (edited) window.location="urlis"; window.location.reload(); Edited January 8, 2008 by Aleksejs Link to comment Share on other sites More sharing options...
andrisp Posted January 8, 2008 Report Share Posted January 8, 2008 Var arī veikt redirektu no PHP, nosūtot speciālu HTTP headeri. header('Location: bla.php'); Link to comment Share on other sites More sharing options...
tomaac Posted January 8, 2008 Author Report Share Posted January 8, 2008 to Aleksejs: Uzrakstīju sekojoši: window.location=window.location.href; window.location.reload(); Bet šeit man sanāca, ka viņš arī noposto vēlreiz, ja pirms tam ir bijis posts. (Man vajaga lai notitku šīs pašas lapas refresh bet POSTiem, ja tādi bijuši). Link to comment Share on other sites More sharing options...
Aleksejs Posted January 8, 2008 Report Share Posted January 8, 2008 Man šķiet, ka to window.location.reload() nevajag. Link to comment Share on other sites More sharing options...
tomaac Posted January 8, 2008 Author Report Share Posted January 8, 2008 Bet tad jau lapa nepārlādēsies... Link to comment Share on other sites More sharing options...
Aleksejs Posted January 8, 2008 Report Share Posted January 8, 2008 Pārlādēsies manuprāt, jo piešķirot href vērtību, tiek atvērta lapa, kuras adrese ir šī vērtība. Link to comment Share on other sites More sharing options...
Val Posted January 8, 2008 Report Share Posted January 8, 2008 parādi, ko esi uzcepis - moš galīgi šķībi un var iztikt bez lapas refreshošanas... Link to comment Share on other sites More sharing options...
Recommended Posts