Dynamic Menu
Hi...I recently changed the nav bar (menu) on one of my sites, which was more or less modeled after an example on AListApart.
My client has recently notified me that it doesn't work for some people, so could you please test browse it? If it doesn't work for you, can you help me figure out why and how to fix it?
The url is swimtigerfish.com
Thanks for the help
Renegade posted this at 20:53 — 22nd April 2004.
He has: 3,022 posts
Joined: Oct 2002
Works for me in Firefox but not in IE6. I'm using Windows XP
chachi posted this at 23:49 — 22nd April 2004.
They have: 9 posts
Joined: Apr 2004
Using IE 6 on XP and it does not work for me either.
kb posted this at 00:10 — 23rd April 2004.
He has: 1,380 posts
Joined: Feb 2002
Alright...so IE must not work, but the demo says it does, and provides workarounds for it.
I followed the same instructions...so any ideas?
kb posted this at 19:17 — 23rd April 2004.
He has: 1,380 posts
Joined: Feb 2002
Here's an interesting caveat for IE...
When you goto a .html page on the site, like swimtigerfish.com/coaches.html , it works.
When you goto a .php page on the site, it doesn't (swimtigerfish.com/home.php or /index.php).
When you use JS in a php page, do you have to declare it at the very beginning like you do with the XML Doc Declaration?
Suzanne posted this at 00:33 — 24th April 2004.
She has: 5,507 posts
Joined: Feb 2000
What browser is not working (version/operating system)? In what way is it "not working"? Without this sort of feedback, cures are impossible.
And yes, the .js file must be included for every single that is referring to it.
kb posted this at 01:29 — 24th April 2004.
He has: 1,380 posts
Joined: Feb 2002
WinXP, IE...The drop down doesn't drop down.
I knew that, I was just wondering if the placement of the <script src=... was detremental in a php file (besides
Suzanne posted this at 03:26 — 24th April 2004.
She has: 5,507 posts
Joined: Feb 2000
Okay, so in IE it doesn't work when this
<script src="new.js" type="text/javascript" language="javascript">
</script>
is in the (.php) but does when it's in the (.html) -- normally I'd say that's all backwards since usually the <script> is best placed in the , but if it won't work there, is there a reason why you can't put it in the ?
Suzanne posted this at 03:27 — 24th April 2004.
She has: 5,507 posts
Joined: Feb 2000
Also, it seems that the window.onload is not being triggered when the script is in the head in IE -- that would be specifically what the issue is?
kb posted this at 03:40 — 24th April 2004.
He has: 1,380 posts
Joined: Feb 2002
Wow...i didn't even notice one was in and one was out...
It still didn't make a difference...what would cause .onLoad to not trigger?
Suzanne posted this at 05:47 — 24th April 2004.
She has: 5,507 posts
Joined: Feb 2000
I'm not sure -- normally this wouldn't be affected. Is there some conflict that I can't see between ids/variables in the JavaScript/php?
kb posted this at 15:38 — 24th April 2004.
He has: 1,380 posts
Joined: Feb 2002
Well...i tend not to use ids and classes with similar names
(on a side note...i noticed that the JS is getElementbyID, and i had the menu as a class...i changed it to id, but still didn't help.)
Abhishek Reddy posted this at 16:36 — 24th April 2004.
He has: 3,348 posts
Joined: Jul 2001
Why is the space before over in the JS necessary? I don't see any reason for it, though I notice the ALA writer uses it. I don't think he makes any note of it either. It could be that Moz trims that space and IE retains it... but I can't say for sure. Try removing it if you haven't already.
kb posted this at 17:18 — 24th April 2004.
He has: 1,380 posts
Joined: Feb 2002
Well, for Moz and Firefox, the menu works fine without the JS, because the CSS stands up for itself...
Removing the space does nothing...
Abhishek Reddy posted this at 17:52 — 24th April 2004.
He has: 3,348 posts
Joined: Jul 2001
Yes, I see now how that bit is supposed to work. Well, without IE to test with, I don't think there's much I can do to help.
kb posted this at 18:04 — 25th April 2004.
He has: 1,380 posts
Joined: Feb 2002
forget it, i decided to make it non-dynamic
Suzanne posted this at 18:47 — 25th April 2004.
She has: 5,507 posts
Joined: Feb 2000
man, I've said those very words myself.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.