Re: posting to server but staying on same page

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: wk6pack (wkwan_at_sd61.bc.ca)
Date: 02/26/04


Date: Thu, 26 Feb 2004 09:31:06 -0800

Thanks Jenny. I will try that next time. I never thought about using
iframes before.

Will
"jenny mabe" <news@rabidduck.com> wrote in message
news:opr3yjlnqhqafk40@localhost...
"wk6pack" <wkwan@sd61.bc.ca> wrote in message
> I have a form written in asp. I wish to submit the form and have the
> server return back to the same page without actually refreshing the page.

another way to create this behaviour is to place an iframe on your form
page, and use javascript to send the values from this form, when the
submit button is pressed (or you can use a link or other clickable
element), to your processing page in the iframe. use asp to process the
form, and then write out javascript to replace the values in the form
fields with the values returned by your form -- only if they change, as
the values entered by the user will stay as they were entered and the page
will not be refreshed. this is a good way to use asp to generate something
on the screen but you dont want to have to go to another screen or you
want to be able to use javascript to return alerts or do dhtml actions.

jenny


Quantcast