VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: no metod spasticNav

no metod spasticNav 26 Sep 2013 18:25 #3025

Hello, congratulations for the work done. I have a problem and I get this error:
Uncaught TypeError: Object [object Object] has no method 'spasticNav'

The menu did not work. thanks

Re: no metod spasticNav 01 Oct 2013 16:10 #3056


  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0

Re: no metod spasticNav 07 Oct 2013 15:35 #3098

Hi!
In my opinion the link provided by m.freak has nothing to do with the problem reported by Nunziodiego.

I could easily reproduce the reported problem adding the default Joomla Login module in "slideshow" position.

The mainmenu stops working properly due to jquery error:
Uncaught TypeError: Object [object Object] has no method 'spasticNav'

After some tests I could find a countermeasure:
Commenting the line "JHtml::_('bootstrap.tooltip');" in "JOOMLA_ROOT/modules/mod_login/tmpl/default.php" I succeed in the navigation menu to work!

What I finally have done is to use the HTML override feature and add a new "default.php" file in "JOOMLA_ROOT/templates/jf_calla-exteriors/html/mod_login" with that change.

Why is this solving the problem? Is this a good solution? Could someone please explain why the "Bootstrap" issue is not working properly with this template?

Thanks.
Last Edit: 07 Oct 2013 16:34 by diafebus. Reason: New information.

  • Posts:2
  • diafebus
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: no metod spasticNav 08 Oct 2013 16:06 #3106

Hi again!
I can give more information about this error.
It seems it is a jquery conflict due to google maps. In the index.php file of the template there is the following configuration:
<_script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></_script>
<_script type="text/javascript">jQuery.noConflict();</_script>

Also in the index.php file there is a commented section:
// Add JavaScript Frameworks
//JHtml::_('bootstrap.framework');

Probably the template developper preferred to use Google Maps jquery inclusion instead of bootstrap.framework. That is causing the problem.

Proposed solution (it worked for me because I am not using Google Maps option in the template):
Remove previous script section related to Google and add the jquery.framework:

<_script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></_script>
<_script type="text/javascript">jQuery.noConflict();</_script>

JHtml::_('jquery.framework');
.
And that's all folks!
Last Edit: 08 Oct 2013 17:39 by diafebus. Reason: New information found.

  • Posts:2
  • diafebus
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.69 seconds

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.