javascript - Send data without leaving the original page -


the watchlistinsert.php sends information database , want send without leaving original page clicked from. think need use ajax, have tried few different things, not working. hope can me out.

 echo "<td>"."<a id='add' href=\"watchlistinsert.php?symbol=$symbol&price=$price&watchlistgroupid=$watchlistgroupid\">add</a>"  ."</td>"; 

you have options @ disposal:

  1. you can - have written - via ajax
  2. you might able use websockets
  3. you send http-request hidden iframe: how post iframe?
  4. you use javascript load image server ... , url said image url php script

Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -