By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,130 Members | 2,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,130 IT Pros & Developers. It's quick & easy.

Loading files into the page after a form submit

P: 1
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
Feb 12 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!
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?
Feb 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.