Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Enable accordion over JS not work

10-28-2013, 04:19 AM
# 1 (permalink)
zemnet
Hi,
on ZemNet - Internet a IT - Internet I have accordion.
If I do enable it over data-toggle, it work well,
but if I want to enable it over Javascript, I have an error in JS console

Code:

[09:15:49.838] TypeError: $(...).collapse is not a function @ http://new.zemnet.sk/domacnosti/internet#cennik-internet:228
and accordion not work.

Thanks for your help
Viktor

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 2.5

MySQL Version: 5.x

PHP version: 5.x

Link to installation: ZemNet - Internet a IT - Info

Have you edited any files? If yes tell us which ones.: No

Is this personal or client website?: Personal
10-28-2013, 06:29 AM
# 2 (permalink)
zemnet
Modal window not work correctly, because when I reload the page, modal window is opened, but I can't close it, only if I open it with clicking on first "Vzdialená pomoc" icon, window is modalized, and then I can close it.
10-28-2013, 09:47 AM
# 3 (permalink)
zemnet
Quote:
Originally Posted by zemnet
Modal window not work correctly, because when I reload the page, modal window is opened, but I can't close it, only if I open it with clicking on first "Vzdialená pomoc" icon, window is modalized, and then I can close it.
modal is ok, but accordion not work.
10-29-2013, 05:05 AM
# 4 (permalink)
zemnet
Via data attributes works all, but over javascript not work neither tabs.
10-29-2013, 10:07 AM
# 5 (permalink)
arefund
Hello zemnet.

That is jbootstrap default accordion.

Bootstrap Javascript | Shortcodes

Your jbootstrap should be on.

Thank you.
Kindness costs the least, but is worth the most!
10-29-2013, 11:35 AM
# 6 (permalink)
zemnet
jbootstrap is enabled. if i will remove data-toggle attribute, accordion not work,
over javascript I can't start with collapse() function.

Now is site without data attribute and accordion not work.
10-31-2013, 06:27 AM
# 7 (permalink)
zemnet
Can you help me, I need javascript control of accordion (or tabs) for my site for customization. Tabs over javascript not working too.
10-31-2013, 08:26 AM
# 9 (permalink)
neo
you get collapse is not a function because you are not wrapping the script inside jquery no conflict so it defaults to mootools and mootools has no collapse

jQuery.noConflict() | jQuery API Documentation
10-31-2013, 08:28 AM
# 10 (permalink)
neo

Code:

jQuery.noConflict();
(function( $ ) {
  $(function() {
    // More code using $ as alias to jQuery
	$(".collapse").collapse()
  });
})(jQuery);
should work
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

Members Login

Username
Password