Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jquery version problem #269

Closed
GoogleCodeExporter opened this issue Aug 31, 2015 · 3 comments
Closed

Jquery version problem #269

GoogleCodeExporter opened this issue Aug 31, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Jscrollpane is throwing "Uncaught TypeError: Cannot read property 'top' of null 
" on Chrome on line:

              currentOffset.top -= dragPosition;

This happens with jquery version 1.6.1 in Chrome and Firefox, but ok with IE 7.
Jquery version 1.7.2 does not work with any of them.
Jquery version 1.4.2 works fine.


Original issue reported on code.google.com by claudiogabrielgambone@gmail.com on 23 Jul 2012 at 3:04

@GoogleCodeExporter
Copy link
Author

This is because the script initializes a few elements using the attribute 
"className" instead of "class". Which is the js/dom equivalent of the HTML 
class attribute. 
Since jQuery > 1.7 ( maybe 1.6 as well? ) the attributes are strictly used for 
generating HTML, so setting the "className" property actually generates 
something like this: <a classname="" />

Replacing all occurrences of "className" to "class" thus fixes the problem. 

Attached is an updated version.

Original comment by Jaap.Moo...@gmail.com on 24 Jul 2012 at 7:03

Attachments:

@GoogleCodeExporter
Copy link
Author

That problem is with the (very) old version 1.x of jScrollPane. Please use 
version 2.x instead:

http://jscrollpane.kelvinluck.com/

Original comment by kelvin.l...@gmail.com on 24 Jul 2012 at 8:09

  • Changed state: WontFix

@GoogleCodeExporter
Copy link
Author

Thank you Jaap.Moo...@gmail.com it works now!

Original comment by sopov...@gmail.com on 17 Oct 2012 at 12:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant