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

collapse js error on wip-2.0 #862

Closed
tuladhasum opened this issue Dec 28, 2011 · 6 comments
Closed

collapse js error on wip-2.0 #862

tuladhasum opened this issue Dec 28, 2011 · 6 comments

Comments

@tuladhasum
Copy link

HTML markup

<button class="btn danger" data-toggle="collapse" data-target="#demo5">  simple collapsible</button>
<div id="demo5" class="collapse in"></div>

For some reason, I keep getting this error when I try to implement the collapse feature

Uncaught TypeError: Object [object Object] has no method 'on' [bootstrap-collapse.js:126]

@pokonski
Copy link
Contributor

Are you using the latest jQuery? It is vital you use 1.7.X, because that's when they introduced on method.

@tuladhasum
Copy link
Author

That might be the problem. I just checked, and it turns out I am using jQuery v1.6.2.
I will try changing it tomorrow at work.
Thanks

@tuladhasum
Copy link
Author

jQuery 1.7 removed that error, but I couldn't make the collapse work.

@pokonski
Copy link
Contributor

It is an early work in progress, after all.

@tuladhasum
Copy link
Author

Yep. I have written a custom piece of js to implement this feature.
I was trying to apply this feature to a collapsible table.
It would be cool to have a collapsible table for bootstrap though. like this one http://thequarrygroup.com/table_row_alignment/tablesorter1.htm

@fat
Copy link
Member

fat commented Jan 2, 2012

yep you need the latest jquery as @pokonski - if you have other problems with collapse though, please feel free to open more tickets against it. It should be relatively stable at this point.

@fat fat closed this as completed Jan 2, 2012
daveobriencouk pushed a commit to egocreative/bootstrap that referenced this issue Nov 18, 2012
removed _trackPageLoadTime - it's now enabled by default in Google Analytics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants