run php script inside javascript without leaving page -
i have javascript alert (from image onclick) - want have alert box , run php script. right have this..
<script type="text/javascript"> function doit() { window.location.href='script.php'; alert("test"); } </script>
it works, except physically takes me script page. want run php script , stay on current page i'm on.
any ideas? also, using ajax had serious issues working in ie , ios decided not use it.
use ajax provider such jquery
.
have @ jquery
with ajax, can execute php scripts without leaving current page.
Comments
Post a Comment