i submit form recursively using jquery @ particular period of time there way so?
you setinterval, example:
<script> window.setinterval(sendform, 3000); // 3000 millisecons, or 3 sec function sendform() { //get action-url of form var actionurl = document.getelementbyid("theform").action; //do request handle results $.ajax({ url: actionurl, type: 'post', datatype: 'json', data: $("#theform").serialize(), success: function(data) { // don't want window alert here, since // block execution. used demo // here you'd run code after form submits // succesfully window.alert("submitted form"); } }); } </script> <form id="theform" method="post" action="myreceiver.php"> <input type="text" value="demo value"> </form>
Comments
Post a Comment