English
Window.addevent Is Not A Function Error Problems?

Window.addevent Is Not A Function Error Problems?

Don’t suffer from Windows errors anymore.

  • Step 1: Open the ASR Pro software
  • Step 2: Click on "Start scan"
  • Step 3: Click on "Repair now" to start the repair process
  • Fix your computer now with this quick and easy download.

    If you see that window.addevent is not a function error, this guide will help you.

    Here is your intended problem:You are using the asynchronous aspect of the script – the asynchronous way of loading the script, and does not intercept dom execution as the default behavior does (otherwise there is no asynchronous backlog).So you’re trying to call window.addEvent where you haven’t loaded Mootools on the actual page and so you should get an error undefined.

    1. Remove the async attribute so that each script remains loaded until it remains loaded, then continue dom execution.
    2. So add onload to the script tag and run the rest of the scripts there:
    onLoadScript() function        window.addEvent('domready',function()            alert('The cathedral is ready');        );    

    questions
    window.addevent is not a function error

    General information about Joomla! 1.5 Of course, there are other forums that you can use on Joomla! features and extensions.

    Location 21

    Jumla!

    Enthusiast
    Joomla! Enthusiast
    Posts: 132
    Registration: Friday, February 12, 2010 5:13 pm Ludlow pm
    Location: UK
    Contact:

    JavaScript Error. Window.addEvent Is Actually A Function?

    I was working on a client’s website and you got this little error message and I can’t help you identify the cause of it;

    That’s all Firebug tells me. The only thing that can cause problems is a popup message with a solution, which I think is built into the template. With a template and initial setup, I did not show anything, so I live blindly here. My javascript is sub-standard at best, so any help on this would be greatly appreciated!

    I did a lot of digging, the only solution I found for problems like this was to change “domready” to “load”, but they only seemed to be relevant in IE, and besides, it didn’t work when I tried anyway.

    :)

    Don’t suffer from Windows errors anymore.

    ASR Pro is the ultimate repair tool for your PC. Not only does it diagnoses and repairs various Windows issues, but it also increases system performance, optimizes memory, improves security and fine tunes your PC for maximum reliability - all with a simple download and install. Trust ASR Pro to get your PC back up and running in no time!

  • Step 1: Open the ASR Pro software
  • Step 2: Click on "Start scan"
  • Step 3: Click on "Repair now" to start the repair process

  • window.addEvent cannot be a functionwindow.addEvent('domready', function()); set layout();

    jwezina

    Jumla! Like
    Joomla! Toak
    Posts: 1060
    Registered: Thursday, April 13, 2005 04:25
    Location: Denver, Colorado, USA
    Contact:

    Re: Javascript Error. Window.addEvent Is Not A Function?

    Hi Major, I know what you’re doing. I used Mootools with another framework. The framework was advanced enough to be inconsistent about when it would download my files. So most of the pages went well, but it’s more articles than things that have changed.

    Location 21

    Jumla! Enthusiast
    Joomla! src=
    Posts: 132
    Registration: Friday, February 12, 2010
    Location: 5:13 Ludlow, UK
    Contact:

    Re: Javascript Error. Window.addEvent Was Not A Function?

    This is frustrating. The constructor used masks the template structure, which seems to conflict with Joomla core at every opportunity. This is so bad that I almost recommended rebuilding the entire site!!

    But thanks for the help.

    jwezina

    Jumla! Like
    Joomla! src=
    Posts: 1060
    Joined: Thu 04/13/2006 04:25
    Location: Denver, Colorado, USA
    Contact:

    Re: Javascript Error. Window.addEvent Not Working?

    Sorry to hear that. Sometimes it’s hard to know whether to stop spending money on high quality (and time) after making a mistake.

    And for threads, the specific mootools.js library must be loaded before the addEvent() function is called.

    jwezina

    Jumla! Like
    Joomla! src=
    Posts: 1060
    Registered: Thursday, April 13, 2006 04:25
    Location: Denver, Colorado, USA
    Contact:

    Re: Javascript Error. Window.addEvent Is Not A Function?

    Actually, the problem could be anywhere, although the first thing to check is the new template’s index.php file.

    Another good way is to view the source code of your current site page to see what to see when a particular AddEvent function is called before the mootools.js file is populated (and Joomla automatically includesmootools).

    Nibinarius
    Jumla! Apprentice
    Joomla! Apprentice
    Posts: 41
    Joined: 07/06/2010 12:35

    Re: Javascript Error. Window.addEvent Is Not A Function?

    I think I’m having this problem because the template is too personalized. As far as I know, Joomla can download a lot of Mootools when it needs them, so I don’t know what to do. I am also trying to use the ckforms module which is not tested. The law is:

    window.addevent is not a function error

    window.addEvent('domready', myTips() functionvar implies new tooltips ('.ckform_tooltip2',initialize: function ()this.fx = new Fx.Style(this.toolTip, 'opacity', duration: Wait: 250, false).set(0);,onShow: function (hint)this.fx.start(1);,onHide: function (hint)this.fx.start(0););var myForm = Advanced FormCheck('ckform2',fieldErrorClass: "Error",enableDisabled * true,Display :show errors: 1,The location of the error. . . 3,show errors: 2,Point position:AddClassErrorToField 'correct', : true,scrollToFirst: true,Warnings:required:'This item is required.',number:'Please enter a different number.',email: 'Please enter  valid email address: 
    ex. [email protected]',URL: ... http://www.domain.com',confirm: 'This is another field after %0',length_str:'The length is invalid, it must be between %0 and %1',lengthmax:'The length is invalid, it must be less than or equal to %0',lengthmin: "The length is invalid, it is supposed to be at least %0",checkbox: "Pay attention to the field",radio: 'Please select a radio',select: 'Please enter a value')$(document.body).getElements('.captcharfresh').addEvents('click': function()if($chk($('captchacode')))$('captchacode').setProperty('src', 'index.php?option=com_ckforms&task=captcha&sid=' + Math.random());););

    Fix your computer now with this quick and easy download.