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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -