Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy CSS conflicts with Java?

    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/Co...f%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.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    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/Co...f%20index.html
    Line: 2812
    Error: document.formDoubleMenuDMA is undefined
    Source File: http://www.retailersupplies.co.uk/Co...f%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!

    Get your page to validate and see if the problem resolves itself.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • Users who have thanked Rowsdower! for this post:

    INoodle (01-05-2011)

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    FYI: Java and javascript are entirely different. This was a javascript issues.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •