Author |
Message |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sat Apr 12, 2008 6:54 pm |
|
I created a new user account on XP Home recently. Apparently today was the first day I tried to use IE7 with it. I got this weird prompt about security and local intranet (I was testing some stuff with XAMPP and using http://localhost). I can't remember how I answered the question, but now all I get is a blank page whenever I try to view pages that include some javascript via a script tag. Its not all javascript, but javascript I know works. I have been futzing with this d*** thing for an hour, googling, and I cannot find the setting to fix it. Any ideas? IE does not indicate any errors on the page. As soon as I comment out the script tags the page loads. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
djmaze
Subject Matter Expert

Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv
|
Posted:
Sat Apr 12, 2008 8:43 pm |
|
Move to GNU/Linux?
I never had problems using anything other then IE |
_________________ $ mount /dev/spoon /eat/fun auto,overclock 0 1
ERROR: there is no spoon
http://claimedavatar.net/ |
|
|
 |
Gremmie

|
Posted:
Sat Apr 12, 2008 9:00 pm |
|
I only use IE7 to check compatibility. |
|
|
|
 |
Gremmie

|
Posted:
Sun Apr 13, 2008 12:30 pm |
|
I've uninstalled it and reinstalled it. Same thing.
I have a page that is valid XHTML. It is blank in IE7; well actually it does have the background color that the .css file has in it. If I do a "view source" the document is all there.
If I remove this one line then it works:
Code:
<script type="text/javascript" src="http://localhost/django/media/js/theme.js" />
|
Note that this theme.js file is an empty file! |
|
|
|
 |
Gremmie

|
Posted:
Sun Apr 13, 2008 1:04 pm |
|
WOW.
Okay, here is the solution to this. Apparently IE7 treats <script /> and <script></script> differently.
All my problems went away when I formatted my script tag like this:
Code:
<script type="text/javascript" src="http://localhost/django/media/js/theme.js"></script>
|
I didn't actually find this solution, I had to turn to the geniuses on the #django IRC channel.
Here is the link they pointed me at: http://tanrikut.blogspot.com/2007/09/ie7-shows-blank-page-problem.html |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Apr 13, 2008 9:00 pm |
|
Hhhhmmm... good to know. Not sure I've ever tried the no end tag version, so I guess that is why I have never run into this. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Gremmie

|
Posted:
Sun Apr 13, 2008 9:36 pm |
|
Yeah...who knew? I lost a couple hours looking into this...d'oh! |
|
|
|
 |
djmaze

|
Posted:
Mon Apr 14, 2008 12:08 am |
|
montego wrote: | Not sure I've ever tried the no end tag version, so I guess that is why I have never run into this. |
It does have an end. Read up about XHTML  |
|
|
|
 |
montego

|
Posted:
Mon Apr 14, 2008 5:27 am |
|
djmaze, I know that. I've done the majority of the XHTML clean-up for RN! But, I have always paired up a script tag with the closing tag rather than the element minimization syntax. Didn't even know it would be valid as I've never seen it written as an empty element. |
|
|
|
 |
|