> -----Original Message----- > From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 14, 2002 12:16 PM > To: CF-Talk > Subject: Re: Page is Loading message... > > > Dave Babbitt wrote: > > > > <!--- All the stuff that takes a long to > process here ---> > > <script type="text/jscript"> > > > document.all.PleaseWaitMessage.style.display='none'; > > </script> > > That is a MS'ism that won't work in other browsers, the > standard way is > to use getElementById(). If you must support non-conforming browsers > (e.g. Opera) use: > > <script type="text/javascript"> > if(document.getElementById) { > > document.getElementById('PleaseWaitMessage').style.display='none'; > } > else { > document.all.PleaseWaitMessage.style.display='none'; > } > </script>
Actually just the first is needed (you don't need the else, I believe, as IE unstands both syntaxs). So, basically, just use "getElementById" and you should be all set for most modern browsers. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

