Dan

> I need to submit a form to another website behind the scenes, its an
> email address going to our outbound email vendor, and have been asked to
> just refresh the page, and not actually have it go to the ugly redirect
> page after the submission.
> 
> Any thoughts

Personally I would address the issue at source, and host your website somewhere that allowed you to implement the type of server side scripts that would allow you to handle the entire process.

IMHO there is no elegant manner in which to achieve what you want to do. If you *must* do it your way, then I would probably collect the information from the form, open a window via javascript, pass the information that you've gathered to this window, submit a pre-populated form to the "outbound email vendor" (please, please, tell me you're not using a Response-o-matic type service), and close the window after an appropriate amount of time to tidy up after yourself. You could also check out when the onunload event handler fires - before or after the http request for the next page has been sent.

This is a total kluge, so think seriously about upgrading your hosting.

Regards

Chris Marsh
