edi Posted November 25, 2009 Report Share Posted November 25, 2009 kā var uztaisīt tā, lai pēc alert parādīšanās(un ok nospiešanas) pāradresētu uz citu lapu ? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 25, 2009 Report Share Posted November 25, 2009 alert('text'); document.location.href="http://php.lv/f"; Quote Link to comment Share on other sites More sharing options...
0 edi Posted November 25, 2009 Author Report Share Posted November 25, 2009 (edited) if ( isset ( $_GET['add'] ) ) { if (empty($_POST['tsss'])) { echo '<script type="text/javascript"> alert("text"); document.location.href="index.php"; </script>'; echo '</td>'; require_once('footer.php'); exit; } else echo "<br><br>"; echo "seuccess :D!"; echo '</td>'; require_once('footer.php'); exit; } } kāpēc man pēc js nerāda footer ? :) Edited November 25, 2009 by edi Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 25, 2009 Report Share Posted November 25, 2009 tāpēc, ka document.location.href="index.php"; pārlādē lapu uz index.php. Iespējams, ka footers vairs nepaspēj parādīties, pirms lapa pārlādējas. Quote Link to comment Share on other sites More sharing options...
0 edi Posted November 27, 2009 Author Report Share Posted November 27, 2009 tāpēc, ka document.location.href="index.php"; pārlādē lapu uz index.php. Iespējams, ka footers vairs nepaspēj parādīties, pirms lapa pārlādējas. tad man footer no sākuma palaist un tad js? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 27, 2009 Report Share Posted November 27, 2009 vispirms izdomā, ko tu gribi ar to location.href panākt Quote Link to comment Share on other sites More sharing options...
Question
edi
kā var uztaisīt tā, lai pēc alert parādīšanās(un ok nospiešanas) pāradresētu uz citu lapu ?
Link to comment
Share on other sites
5 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.