window.event
is a proprietary Microsoft
Internet Explorer property which is only available while a DOM
event handler is being called. Its value is the Event object
currently being handled.I think in Mootools it should be
window.addEvent('domready', function() {...})
Mootols are still alive and kicking, unhappily...
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
jQuery(window).on('load', function() {
console.log('hey');
});
I think in Mootools it should be
window.addEvent('domready', function() {...})
Mootols are still alive and kicking, unhappily...
On 2016-06-16 11:15, ghazal wrote:
This below should be removed from the docs, it's a Mootools Javascript framework declaration.--
Joomla gave up Mootools a couple of years ago, front-end wise.
===============================
<?php
// No direct access
defined('_JEXEC') or die;
$document = JFactory::getDocument();
$document->addScriptDeclaration('
window.event("domready", function() {
alert("An inline JavaScript Declaration");
});
');
==============================
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
.load is deprecated (since JQuery 1.8).
With JQuery, IF you want to run a function when the DOM is ready, the easiest, simplest and more straightforward way is:
jQuery(function() {
console.log('hey');
});
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.