0

On my page here: redacted

I'm getting the following error: Uncaught TypeError: Cannot read property 'hide' of null, and the element that's supposed to drop down just stays covering the top of the page (the big white image)

When I delete prototype.js the header image drops down from the top as it's supposed to. My working knowledge of javascript is very basic so I can't see what the issue is.

What would be the easiest solution to this problem, assuming I need both js files?

Thanks!

Edited: redacted URL - the solution used was to add : var $j = jQuery.noConflict(); at the top of the jQuery scripts and replace all instances of $ with $j. Much appreciated.

asked Apr 29, 2014 at 5:03
4
  • 1
    Please post relevant code here. Many people wont follow links to find what you're talking about. Commented Apr 29, 2014 at 5:06
  • 1
    possible duplicate of Why does including prototype.js break the functioning of jquery bbq? Commented Apr 29, 2014 at 5:12
  • noted - will keep in mind in the future. adding the parts i think are relevant to the post. as i'm not sure what the problem is, it's a little tricky to figure out which parts of the code people should be looking at. :) Commented Apr 29, 2014 at 5:13
  • 1
    I did search before posting, I missed that post @WereWolf-TheAlpha. Thanks a lot. Commented Apr 29, 2014 at 5:18

1 Answer 1

1

before your .ready() function, write jQuery.noConflict();

read more here

answered Apr 29, 2014 at 5:11
Sign up to request clarification or add additional context in comments.

1 Comment

thank you... i did search for something similar but missed that post.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.