Back again with a new, difficult (hopefully not for all of you on SO!) question.
I've got this website running with a sidr plugin. It is initialized on the master Site.Master
, and is working on 'nearly' all the pages. However, on a few pages, it comes up with Uncaught TypeError: Object [object Object] has no method 'sidr'
and it references the Site.Master
code of $(document).ready(function(){ $(#sideBar).sidr({ name: 'sidebar', side: 'left' });});
.
Would anyone know why it works on most pages, but on a few it doesn't? I've checked this and this and this but to no avail. Any and all help is greatly appreciated.
Cheers
Edit:
Adding in a picture to display a bit better what is happening. As you can see the layout is completely lost, as though JavaScript has become disabled on the page. The reference to .sidr and .searchable are within the Site.Master
ONLY, so I'm not sure why it's coming up like this. As mentioned in the comments, I have made sure there is only one reference to these scripts.
Thanks in advance.
Here's what it looks like on the few pages it doesn't work:
Here's what it looks like on the pages it does work on:
Extended sidebar -
Hidden sidebar -