| 3:52 pm on May 20, 2004 (gmt 0)|
I'm a little confused, what do you mean by display problems?
A lot of JS will impact your page size, but unless the JS is doing something visually, it should have no effect...
| 4:18 pm on May 20, 2004 (gmt 0)|
Well I have this problem with every site I make, it may be the layout I use. I mean that when there are 'too many' js calls, sometimes it only takes two, in IE 5 when I preview all of the page content beneath the js will not display and you get the little yellow error symbol lower left. If i take out one of the js calls all returns to normal. Html comments also cause a similar problem.
| 4:28 pm on May 20, 2004 (gmt 0)|
If you double click on the JS error flag (the yellow alert in the bottom left corner) you will get the JS Error console - what does it say?
| 5:11 pm on May 20, 2004 (gmt 0)|
Error: Syntax error
Thanks for your help.
| 5:12 pm on May 20, 2004 (gmt 0)|
What is line 309 in your local file? (It's generally not exact, so the script line close to that).
Mozilla has a better JS debugger that may be worth using...
| 5:14 pm on May 20, 2004 (gmt 0)|
the problem is in your code somewhere. You'll need to fine tooth comb through your scripts and see what is causing the error.
Toss in "alert" every step of the way so you can see what you are actually getting for values, versus what you think you are getting.
| 5:35 pm on May 20, 2004 (gmt 0)|
Line 309 is where the third js call starts.
The actual scripts should be okay, they are from Google adsense or phpadsnew or axs. I'll keep playing around.
| 5:26 pm on May 28, 2004 (gmt 0)|
Weeell I did keep playing around and the problem resolves itself if I remove, from the second instance of phpadsnew code, <!-- //--> which encloses the phpadsnew code or the body of it. I've had this problem before, comments preventing the page content from displaying when there is js on the page.
Does this make sense to anyone? I'm using I.E. 5.01. And secondly are the comments at all necessary for the scripts to function? In there ordinary state the whole bit is:
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("http://www.mysite.com/phpadsnew/adjs.php?n=" + phpAds_random);
document.write ("&exclude=" + document.phpAds_used);
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
</script><noscript><a href='http://www.mysite.com/phpadsnew/adclick.php?n=abdead03'><img src='http://www.mysite.com/phpadsnew/adview.php?clientid=1&n=klsdk00' border='0' alt=''></a></noscript>
I remove <!-- and //-->
| 10:28 am on May 29, 2004 (gmt 0)|
You shouldn't really use <!-- and --> in JS code. These are HTML comment tags.
This technique was used in the past to hide scripts from browsers that didn't understand JS, but that is (more or less) not an issue these days.