View Single Post
  #2 (permalink)  
Old 06-12-2007, 04:45 PM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 385
DaveSawers RepRank 1
Default Re: Manipulating Popups

Anything can be done... Even naff features like a thank you message!

Are you using the "onunload=somefunction() in the body tag for the page?

Instead of using the SUBMIT button to submit the form directly, fire off a Javascript function instead that sets a flag and then submits the form. Then use the flag in your unload function to bypass the display of the message. You will need to do some thinking about how to cope with users who have Javascript disabled, otherwise, they won't be able to submit the form.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote