...

View Full Version : CSS conflicts with Java?



INoodle
12-22-2010, 01:49 PM
Hello everyone this is my first post. Not sure if this is the best place to post this, apparently the issue is either an id or class rather than the Java itself.

Basically I put together a drop down box and once it was finished and working pasted into our CSS website. Once inside the site the drop down no longer works as expected.

Here is the dropdown box, it doesn't link to anything yet (when you select the 2nd box it is meant to take you to a different page, so ignore the broken link).

http://www.retailersupplies.co.uk/test2.html

And here it is on a mock version of the site, it sits down on the left, where it was 'test'. The second box doesn't work at all now.

http://www.retailersupplies.co.uk/Copy%20of%20index.html

I've tried deleting each id and class individually with no luck, so it may be multiple things stopping it from working. Hopefully someone will find this problem an easy solution. Thanks for taking the time to read.

Rowsdower!
12-22-2010, 02:15 PM
The following errors are visible in Firefox's error console (using the developer's toolbar add-in)


Error: document.formDoubleMenuDMA is undefined
Source File: http://www.retailersupplies.co.uk/Copy%20of%20index.html
Line: 2812


Error: document.formDoubleMenuDMA is undefined
Source File: http://www.retailersupplies.co.uk/Copy%20of%20index.html
Line: 2635

What you have is a javascript error, plain and simple. This isn't a CSS issue, but is actually an issue with your HTML. For starters, you have three opening body tags. You are badly in need of a trip to the HTML validator (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.retailersupplies.co.uk%2FCopy%2520of%2520index.html&charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1&verbose=1)!

Get your page to validate and see if the problem resolves itself.

INoodle
01-05-2011, 01:19 PM
Thanks for that! Took a little while to go through all the various problems, but learnt a few things on the way. Problem now solved. :)

abduraooft
01-05-2011, 02:02 PM
FYI: Java and javascript are entirely different. This was a javascript issues.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum