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.

Rayne
  • 67
  • 5
  • 1
    Please post relevant code here. Many people wont follow links to find what you're talking about. – Sterling Archer Apr 29 '14 at 05:06
  • 1
    possible duplicate of [Why does including prototype.js break the functioning of jquery bbq?](http://stackoverflow.com/questions/8907588/why-does-including-prototype-js-break-the-functioning-of-jquery-bbq) – The Alpha Apr 29 '14 at 05: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. :) – Rayne Apr 29 '14 at 05:13
  • 1
    I did search before posting, I missed that post @WereWolf-TheAlpha. Thanks a lot. – Rayne Apr 29 '14 at 05:18

1 Answers1

1

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

read more here

Reigel Gallarde
  • 64,198
  • 21
  • 121
  • 139