homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Form mail
Complex activities with form mail
ohsodit




msg:587917
 6:58 am on May 3, 2001 (gmt 0)

This is driving me mad. I have form A where people fill in details. I then validate the form and open a standard format page with those details on using javascript "document.write()" etc and get the values using "window.opener.form1.etc"
which works fine. However, I need also to use form mail to email some of those details to me and if I do it at the same time as creating the new page, the submission form comes up and the javascript is then trying to get the values from the submission page which it cant. Ive tried doing the form mail when I close the created page but there is no "onWindowClose()" function. So Im stumped. It would be useful if I could delay the page creation until the form mail had finished but it just starts a new thread and continues. Any ideas anybody help.
Chris

 

David




msg:587918
 3:53 pm on May 3, 2001 (gmt 0)

I am not sure I completely understand what you are trying to do, but here are two thoughts:

At the end of the validation function use JS to submit the form. Then load your new page

You might need to use a hidden form, fill it from the user form, submit it.

Could be you need a combination of the two.

agerhart




msg:587919
 4:05 pm on May 3, 2001 (gmt 0)

I know that you may not want to use it, but this can be done very simply using ASP. I have done this on a number of different occasions using ASP

Just a thought

ohsodit




msg:587920
 4:22 pm on May 3, 2001 (gmt 0)

Thanks guys. I suspect this is one of the many things I tried but will give it a go. The problem was that having filled in details in form A and validated them, I then open a new page and using javascript, get the values from the "window.opener" page and manipulate the values to fill certain fields on the new page. Once this is presented to them, the user can then check it then print it and close it. The problem was that if I tried to submit as I opened the new page, the "submission results" page was now in memory and the new page couldnt access the "window.opener" page to get the values.
But I have had a couple of thoughts, I might put in a time delay to let the submission results page come through and be closed before opening the new page or, set a value in a cookie that once the opener page is reloaded it needs to submit the form.
Thanks
Chris

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved