Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q2067 Is there a way to submit a form and ignore the response?

You are here: irt.org | FAQ | HTML | Q2067 [ previous next ]

After submitting the form data to server,  it will send the response to the client. This will update the current display on client side. However it is possible to retain the current display and ignore the response from the server. This can be achieved by targeting the response to a dummy frame. Sample code:

<FRAMESET ROWS="100%,*">
<FRAME SRC="Form.html" NAME="FormFrame">
<FRAME  SRC=about:blank NAME="DummyFrame" NORESIZE>
</FRAMESET>

Then in the Form.html:

<FORM METHOD="POST" ACTION="xxxxx" TARGET="DummyFrame">

Thus, result will be put into non-vizible frame without affecting the form display.

©2018 Martin Webb