Monday, April 16, 2012

ajax background process after submit button

the script I post works fine, it just execute in background my php code at the load of the page.. What I cannot do is to start the php in background after having pressed a submit button.. I tried to add a form in the body but I don't know how to link it with the ajax.. how could be done?

<script src=""></script>
<script src=""></script>

<script type="text/javascript">
$(document).ready(function() {
url: 'trial.php',
beforeSend: function() {
// you could also put a spinner img or whatever here too..
success: function(result) {




1 comment: