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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -