Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Other - Discussion
Author Message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Apr 12, 2008 6:54 pm Reply with quote

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 
View user's profile Send private message
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Sat Apr 12, 2008 8:43 pm Reply with quote

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/ 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Sat Apr 12, 2008 9:00 pm Reply with quote

I only use IE7 to check compatibility.
 
Gremmie







PostPosted: Sun Apr 13, 2008 12:30 pm Reply with quote

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







PostPosted: Sun Apr 13, 2008 1:04 pm Reply with quote

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

PostPosted: Sun Apr 13, 2008 9:00 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Sun Apr 13, 2008 9:36 pm Reply with quote

Yeah...who knew? I lost a couple hours looking into this...d'oh!
 
djmaze







PostPosted: Mon Apr 14, 2008 12:08 am Reply with quote

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 Wink
 
montego







PostPosted: Mon Apr 14, 2008 5:27 am Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Other - Discussion

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©