Loading files into the page after a form submit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sirjaybishop
    New Member
    • Feb 2008
    • 1

    Loading files into the page after a form submit

    Hi

    I have an issue in some browsers when linking to style sheets or images in some browsers using a DOM script after I have submitted a form.

    I am trying to make the form submission process accessible to javascript disabled users, it was previously using an interstitial page.

    Now I want to hide the page content and replace it (visually) with the interstitial message while the user awaits their results (which could take up to 20seconds). My DOM script adds display: none; to all of the bodies child elements then inserts the interstitial content stylesheet and HTML (containing image links). The script works for IE6 and 7 but in Firefox it will not display with the styles or images and Opera will not display the images.

    Could be that the stylesheets and images aren't loading in time, as I am linking to a remote server, but I have tried loading the images into the cache on page load and this has not helped.

    Any ideas, this function is the very last script to fire befor the form is submitted, do some browsers stop loading any other content to a page after submission has occured?

    Any help or feedback will be greatfully received.

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!
    Originally posted by sirjaybishop
    Any ideas, this function is the very last script to fire befor the form is submitted, do some browsers stop loading any other content to a page after submission has occured?
    This will most likely be the problem. Why not show the images just before submit?

    Comment

    Working...