I\'ve read a lot of post regarding the topic. I\'ve seen lots of answers and pointing to use ajax. Is there any other way to not refresh the page on form submit?
E.g Sam
<form method="post" onSubmit="event.preventDefault()">
<input type="radio" name="test" value="Start">Start<br />
<input type="radio" name="test" value="Stop">Stop<br />
<input type="submit" value="GO">
</form>
You don't need to use any iframe for this short purpose... as you looking for a javascript methods, I will recommend you to use event.preventDefault()
inside the form
tag in html... it will not let the form submitted and refresh the page...
I think you may use AJAX For that it's better ways to submit form without page refresh
Yes, you can use a form embedded in an iframe.
Yes, you can use iframes:
<iframe id="myIframe" name="myIframe" width="0" height="0" frameborder="0"></iframe>
<form method="post" target="myIframe" action="script.php">
<input type="radio" name="test" value="Start">Start<br />
<input type="radio" name="test" value="Stop">Stop<br />
<input type="submit" value="GO">
</form>