Logout Button Error - Uncaught ReferenceError: jQuery is not defined

5 years 10 months ago #1 by Jim
Hello Function90,

I cannot get the f90 Logout link to work.

I am running Joomla 3.4.8

I installed and enabled the plug-in, and using the following link to trigger the code.

<div id="f90" >
<a href="#" class="f90-logout-button">Logout</a>
</div>


I am getting the following error through the Firebug Console: Uncaught ReferenceError: jQuery is not defined

<script type="text/javascript">
(function($){
$(document).ready(function(){
$('.f90-logout-button').click(function(){
$('#f90-logout-form').submit();
return false;
});
});
})(jQuery);

Any ideas of what is going wrong?

Thanks,

Jim Morrisson
5 years 10 months ago - 5 years 10 months ago #2 by Function90
Hello Jim,

It seems that your template is not using jQuery.
can you add below code in joomla => plugis => system => plg_system_f90logout => tmpl => logout.php
$doc = JFactory::getDocument();
$doc->addScript('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
Powered by Kunena Forum
Cron Job Starts