Jcarousel Offsetwidth Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company uncaught typeerror cannot read property 'offsetwidth' of undefined bootstrap carousel Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Cannot Read Property 'offsetwidth' Of Undefined Bootstrap Lightbox
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, bootstrap.min.js:6 uncaught typeerror: cannot read property 'offsetwidth' of undefined just like you, helping each other. Join them; it only takes a minute: Sign up Jquery - error in jcarousel up vote 5 down vote favorite I'm getting a Javascript error on the homepage of a jcarousel slider site I've developed. On the homepage there is a jCarousel scroller to scroll between profiles. The error is as follows: this.clip[0] is undefined On line 844 of jquery.jcarousel.js. And the URL is http://www.professionalgirlfriends.co.uk - Excuse the subject matter, as it's an escort website. Any idea what's up? jquery jcarousel share|improve this question asked Nov 17 '10 at 21:40 Probocop 3,8042165111 2 May I suggest posting a demo reproducing the problem at JS Bin
Bootstrap Carousel Options
or JS Fiddle, preferably with safe-for-work images? –David Thomas Nov 17 '10 at 21:44 wish I could help but this isn't a work-friendly page :) on a side-note, I am viewing the page just fine in chrome, and superficially, the carousel seems to be working just fine. –Dutchie432 Nov 17 '10 at 21:44 Thanks for your responses, and sorry about the subject matter! The actual carousel works fine, but the JS error on the page is breaking some simple jQuery I'm trying to use. –Probocop Nov 17 '10 at 21:53 Just a quick note, if you open this page in chrome and press Ctrl-Shift-J, you will see there are many items (some JS files too) that aren't being loaded properly. –Dutchie432 Nov 17 '10 at 22:09 add a comment| 5 Answers 5 active oldest votes up vote 7 down vote Btw, I had the same problem, and it was I had div tags instead of ul tags: share|improve this answer answered Feb 2 '11 at 6:44 Luis R. 600512 add a comment| up vote 4 down vote accepted I actually just fixed it myself. The thing that was causing the issue is as follows: In one of my Javascript files, I have the following code: // Load jCarousel on homepage only if($('#home').length) { jQuery('.view
here for a quick overview of the site Help Center Detailed answers to any bootstrap carousel example questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow http://stackoverflow.com/questions/4209431/jquery-error-in-jcarousel is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up jQuery Carousel error up vote 0 down vote favorite My JavaScript Code: $("#carousel").jCarouselLite({ visible: 4, btnNext: ".next", btnPrev: ".prev", circular: false }); Why do i get this error? Uncaught TypeError: Cannot http://stackoverflow.com/questions/8615840/jquery-carousel-error read property 'offsetWidth' of undefined widthjcarousellite_1.0.1.min.js:1 $.fn.jCarouselLitejcarousellite_1.0.1.min.js:1 e.extend.eachjquery.min.js:16 e.fn.e.eachjquery.min.js:16 $.fn.jCarouselLitejcarousellite_1.0.1.min.js:1 (anonymous function)home.js:4 f.extend._Deferred.e.resolveWithjquery.min.js:16 e.extend.readyjquery.min.js:16 c.addEventListener.B jquery share|improve this question edited Dec 23 '11 at 12:39 asked Dec 23 '11 at 12:02 Beginner 6,79047121198 Can you please provide some generated HTML to work with, or an URL where we can see this in action –saratis Dec 23 '11 at 12:11 when you change the language at the top, the error occurs –Beginner Dec 23 '11 at 12:14 Why did you accept Mandeeps answer? First of, it wasnt the answer to your question, second, I provided that answer first.. Did you fix it yourself? Please see my other answer, I spent some time figuring it out. –saratis Dec 23 '11 at 12:41 add a comment| 5 Answers 5 active oldest votes up vote 0 down vote accepted Ok, I may have found your problem, it's probably ASP related. When the lang
Sign in Pricing Blog Support Search GitHub This repository Watch 272 Star 4,903 Fork 1,144 jschr/bootstrap-modal Code Issues 92 Pull requests 13 Projects 0 Wiki Pulse Graphs New issue Cannot read property offsetWidth of 'undefined' https://github.com/jschr/bootstrap-modal/issues/4 #4 Closed kikito opened this Issue Oct 15, 2012 · 4 comments Projects None yet Labels enhancement Milestone No milestone Assignees jschr 2 participants kikito commented Oct 15, 2012 I'm getting that error on this line: // around line 212 in bootstrap-modalmanajer.js this.$loading[0].offsetWidth When I execute this: GlobalModalManager.loading(); I suspect that [0] behind $loading has something to do with this error. Owner jschr commented Oct 15, 2012 cannot read Do you have a page where I can see the error or possibly a jsfiddle? Can't seem to reproduce this on the demo page. Thanks kikito commented Oct 15, 2012 I'm not sure how or why this was happening but I was able to fix the issue by moving all the script tags to the end of my layout's body tag, instead of loading them all in the head section. I cannot read property might be completely wrong, but bootstrap-modal might be attempting to load nodes (i.e. $('body')) when they are not necessarily there yet. For now, I'll just move my things down. Owner jschr commented Oct 15, 2012 Ah yes, the modal manager class creates a default manager on page load attached to body so that sounds like it could be it. While I believe that it's a better practice to have JS files at the bottom of the page, I do not want to enforce it so I will look at fixing this. At the very least I will update the installation with this info. Thanks for looking into this. jschr closed this Oct 15, 2012 jschr was assigned Oct 15, 2012 jschr reopened this Oct 15, 2012 Owner jschr commented Oct 24, 2012 should be fixed now jschr closed this Oct 24, 2012 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.