SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict WillisTi's Avatar
    Join Date
    Sep 2005
    Location
    Bristol, ENG
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Conflicting JavaScripts?

    Hi,

    Using Mootools on my site and today I tried to add the ThickBox hidden content function, that shows hidden content when you click on a link. This worked fine. However as a result the Mootools on my site that shows and hides the contact form and resources tab has now de-activated resulting in the hidden content been shown on screen when it loads.

    See my test page here.Now The actual ThickBox works fine if you click on "Project Details" for the CM Unity project.

    This is how it looks without ThickBox and it's functioning correctly.

    Anyone know how to fix this issue so they can both work together?

    Thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    You are getting two wrrors when the page loads. You may also want to look at the error console (in Firefox in the Tools menu)

    (new Element("div")).setProperty is not a function
    http://www.contemporarymultimedia.com/js/slimbox.js
    Line 28

    $(el).setStyle is not a function
    http://www.contemporarymultimedia.com/js/default.js
    Line 61
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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