Click to See Complete Forum and Search --> : javascipt source = filename.asp causes page to flash white upon reload
dfreem5
12-14-2002, 03:12 PM
http://www.creativefocusinc.com/index2.html
When the main frame is loaded, a white Flash appears first because the javascipt code. (Try going to another page, then returning HOME)
<script language="JavaScript" src="../pagename.asp"> </script>. How can I make this work w/o the white flash? Please help.
dfreem5
12-14-2002, 04:49 PM
Sorry. I will be more specific. The asp is for a hit counter. That hit counter needs to be placed on the main frame (the homepage), so in order to do that, a friend suggested I embed javascript into the html to call the asp. But, that unfortunately, seems to generate a white flash...it is first going to the source...(which is the asp), then coming back to the html to finish loading the page. Make sense? I wanted to know if there is some additional javascript I can include so that it doesnt do that, but still calls the asp page...
dfreem5
12-14-2002, 05:11 PM
OOpps. the part in the javascript: document.write("Included JS file not found");
had neglegted to be removed when I was playing earlier. Thanks for showing me. I just removed that part.
To answer your question, the asp is only accomplishing something on the serverside (generating the hit counter info), and not change the content on the client side whatso ever.
dfreem5
12-14-2002, 05:42 PM
You are da bomb! :)
It seems to be working..the white flash is gone and it is still updating the counter. Coool. Thanks!
But, I am curious...can you tell me what is happening behind the scenes with this new script? <!-- //
var temp = new Image();
temp.src = "../counter/counter.asp";
// -->