Welcome, Guest
Username: Password: Remember me
here you can submit any topics related ExtraWatch

TOPIC: jQuery is not defined

jQuery is not defined 2 years 2 months ago #295

Joomla1.5.20
Latest Extrawatch: 2.3.2152 PRO

in Backend - ie. Livestats, the below error is triggered.

ReferenceError: jQuery is not defined
....column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrde...
jquery....rter.js (line 4)
ReferenceError: jQuery is not defined
$ = jQuery;

morris.min.js (line 11, col 4)

Pls help to resolve.
Norbert
The administrator has disabled public write access.

jQuery is not defined 2 years 2 months ago #306

Hi Norbert,
in which section you're getting that?
The administrator has disabled public write access.

jQuery is not defined 2 years 2 months ago #308

hi Matto, under /administrator -> Components-> ExtraWatch and each submenu there.
Norbert
The administrator has disabled public write access.

jQuery is not defined 2 years 2 months ago #309

Does the jquery framework need to be loaded?

<link rel="stylesheet" href="/components/com_extrawatch/css/ajax-tooltip.css" type="text/css" />
<link rel="stylesheet" href="/index.php?option=com_extrawatch&task=ajax&action=dashboard.css&env=ExtraWatchJoomlaEnv" type="text/css" />

<script type="text/javascript" src="/includes/js/joomla.javascript.js"></script>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/ajax-dynamic-content.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/ajax.js"></script>
<script type="text/javascript" src="/index.php?option=com_extrawatch&task=js&action=extrawatch.js&rand=398923431&time=1411125295&env=ExtraWatchJoomlaEnv&projectId="></script>
<script type="text/javascript" src="/components/com_extrawatch/js/fade.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/jxml.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/jdownloadurl.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/morris/raphael-2.1.0.min.js"></script>
<script type="text/javascript" src="/components/com_extrawatch/js/morris/morris.min.js"></script>
The administrator has disabled public write access.

jQuery is not defined 2 years 2 months ago #311

mootools is conflicting with jQuery since both rely on the $ symbol..

If you insert the jQuery script after the MooTools script (this is the only thing which can be done by the plugin developer) , MooTools will override the $ variable, and you will not have access to the jQuery variable....

In Joomla1.5, you cannot switch mootools off either since it's needed i.e. for the menue structure.

If you switch the order, and call jQuery before mootools, jQuery will own the $, and some plugins and templates will probably yell at you.

To do this, follow this path:

/libraries/joomla/document/html/renderer/head.php

Go in that file right around line 129 where it says "Generate script file links". Before it runs the foreach over that $document->_scripts... array, insert this:

global $mainframe;
if ($mainframe instanceof JAdministrator) {
$strHtml .= $tab.'<script type="text/javascript" src="/components/com_extrawatch/js/jquery-1.11.0.min.js"></script>'.$lnEnd;
}
Last Edit: 2 years 2 months ago by Cugar.
The administrator has disabled public write access.
Time to create page: 0.112 seconds
Joomla SEF URLs by Artio
X

Drop us your message