Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script runs in IE, not Firefox - help!

Status
Not open for further replies.

MamaGeek

Programmer
Feb 22, 2006
5
US
I have a script that generates a nice dropdown menu for my website. It runs fine in IE, which is where I developed it, but does not work in Firefox. Can anyone tell me why?

The script:

My website using the script: (open in IE to see it working)

Thank you in advance to anyone who can help me. I've tried checking for document.getElementById and document.createElement, but I know that Firefox supports both of those. Is there some other object it doesn't support that I'm using, which I need to test for? Thanks!
 
i don't see a drop-down menu in either browser. where should i be looking? are you aware of Firefox's built-in JavaScript debugger? Go to Tools > JavaScript Console.



*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
If you open the website in IE, there is a row of tabs under the title graphic. Click on Writings, for instance, and a list of links drops down.

I looked at the Firefox built-in JavaScript debugger. There were no messages at all.
 
i see. this is most likely a problem with your css. i suggest posting this question over in the HTML / CSS forum (forum215), they should definitely be able to help you out. Because there is no JavaScript error, that leads me to the conclusion that the script is never even being called, or there is nothing wrong with the script. Because you are using an inline script inclusion, it's likely the latter.

So, ask there and see what they say...



*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top