IE goes crazy

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jrowley
Beginner
Beginner
Posts: 2
Joined: Wed May 18, 2005 2:05 am

IE goes crazy

Post by jrowley »

I know this has to be something I'm doing, but I'm stumped.

I'm using the xml menu from the extras directory and Firefox works great. But IE loads the page over and over and over again until I hit the stop button. I can't figure it out.

The link:
http://beastie.dnsalias.org/ipmanager/prototype

Just click past the login screen. I haven't enabled authentication yet.

A snip of my code:
<?php
session_start();

if (!isset($_SESSION['userloggedin']))
header("Location: login.php");

?>

<?php
require_once 'menu.php';
?>
[ html and misc php stuff below ]


I'm going on 2 hours of sleep in the past 2 days so it's probably going to be a 'duh' moment :oops: for me, but I'm at a loss right now.

Thanks,
-j
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hello J,

First, I don't know anything about any of the xml, php etc. However, I have IE and I did [with quick fingers] get the page to download before it started its constant load, and I also looked at the source in Firefox. There seems to be two sets of the call for the menu files.

At the top before the doctype and the html xmlns lines you get the milonic_src, mmenudom, mmenuns4 calls and then the information in the menu_data.js file is in script tags, not just the call for the file, but the actual stuff in the file is in the script tags. Then after the body tag there is the usual call for the 3 base files and the menu_data.js file. And when I was able to download it through IE it downloaded milonic_src twice, putting a [1] after one of the files. When I opened it in my editor and removed either one of those it quit trying to constantly reload.

Are you supposed to have something like this for the xml stuff, cdata tags?

Code: Select all

<script src="milonic_src.js" type="text/javascript"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
//--><!]]>
</script>
Take it with a grain of salt because it may have nothing to do with any of this, as I said, I don't know about the xml, php stuff.
Ruth
jrowley
Beginner
Beginner
Posts: 2
Joined: Wed May 18, 2005 2:05 am

Post by jrowley »

Thanks Ruth! I forgot to remove script parts from my php file when I changed from the regular script to xml.

Thanks again
-j
Post Reply