Results 1 to 3 of 3

Thread: Delay Page Display with Multiple Forms

  1. #1
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Delay Page Display with Multiple Forms

    I am submitting 2 forms to 2 different pages. One (Form1) goes to my php page for my processing and the other (Form2) goes to an external website for processing. While everything works, it sometime takes the external website a while to connect and display it's page contents. Right now, the user sees a blank screen until the external site responds.

    What I'd, ideally, like is for the user to stay on my site until the external site's response is fully loaded (or at least ready to display) and then switch to the new page, so I can display some sort of "processing please wait" message/graphic.

    The 2 forms are being submitted using the following code:
    Code:
        document.forms["Form2"].target="_blank";
        document.forms["Form2"].submit();
        document.forms["Form1"].target="if1";
        document.forms["Form1"].submit();
    if1 is a iframe I use to redirected to my home page so that when the user closes out the external sites page/tab, they're back on my site.

    I've read a lot of comments on displaying a wait message when both pages are your own, but not where one of the pages is outside your control.

    Can anyone suggest a way to solve this?

    Thanks.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Does it help to load the external page in a iframe having 1px width and height, and then give the iframe its normal size after a delay, or after the iframe has loaded the page (<iframe onload=...)?

  3. #3
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Hi Arie.

    Actually, I tried that approach and nojoy. The external website is contacted but doesn't respond with it's page content. I believe it's a timing issue with the external site, but as I have no control over that, it's a dead end.

Similar Threads

  1. Replies: 5
    Last Post: 05-18-2015, 07:19 AM
  2. Delay to multiple slideshows?
    By WaltonCreative in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 05-21-2011, 03:00 PM
  3. Replies: 7
    Last Post: 01-05-2011, 11:02 AM
  4. Multiple select forms on the same page
    By amyy in forum JavaScript
    Replies: 5
    Last Post: 05-07-2010, 02:49 PM
  5. Delay between page load and sub-menu content's display
    By bfider2k in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-07-2008, 02:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •