There are about 10 jquery plugins here (In the project-Asp.Net MVC & JQuery) , there is something causing errors and conflicts in one of the plugins jcarousel
1st I got an error mentioned In the below lines :
Location :
isVisible = this._visible.index(curr) >= 0;
Using the Error console found this error
Timestamp: 5/24/2013 7:08:21 PM
Error: TypeError: this._visible.index is not a function
Source File: http://localhost:1884/Scripts/jcarousel/jquery.jcarousel.js
Line: 826
Cause : I found "_visible" is null
2nd
I changed this._visible.index(curr) >= 0; to true to pass this error
isVisible = true
//this._visible.index(curr) >= 0;
Here the error is passed and next error happens :
Location :
return this.items().index(item);
Error :
Timestamp: 5/24/2013 7:24:03 PM
Error: TypeError: this.items(...).index is not a function
Source File: http://localhost:1884/Scripts/jcarousel/jquery.jcarousel.js
Line: 372
The Line return this.items().index(item); is hit several times but putting a breakpoint in the below line of that never fired.
Conclusion
- As a guess it could be a conflict in this file maybe the word "index",
- This is used by Asp.Net MVC Inside a section and partial pages, not sure but want to know could it cause something like this. (Less Probable cause it's rendered exactly the same as it's equivalent
Asp.Net Formsversion, Just wanted to mention the way I used) - Any other ideas what is the cause and how to solve it ?
In my Asp.net Forms project I configured the plugins to work correctly.
Other plugins registered before this plugin were working correctly.
After disabling the call to the jcarousel everything works fine.
thisis.I found "_visible" is nullis a good indication of where to start looking for problems -- with yourthisobject. Forcingtrueis just ignoring previous problems in the script.