Skip to main content

All Questions

0 votes
2 answers
702 views

Event click trigged twice though preventdefault is set

Some had this problem but I did not see any answer that fits mine. Here is the html : <div id="page"> ...... <ul> <li role="presentation"> <a id="selection"...... &...
mlwacosmos's user avatar
  • 4,482
2 votes
1 answer
1k views

No Event object on Scroll Event in MooTools?

I am getting an undefined value for the event object that I think should be available in the callback for the addEvent() function. This is what I'm doing. element.addEvent('scroll', callback(event) {...
fraxture's user avatar
  • 5,384
7 votes
1 answer
6k views

How to implement OnDestroy/OnDispose event in JS/Mootools?

Is there any existing OnDestroy/OnDispose event in JavaScript or are there any known custom implementations in plain JS or Mootools? Let's say I want to call console.log('bye') when an element gets ...
Slava's user avatar
  • 3,037
2 votes
1 answer
606 views

mootools | Open/close popup menu and outer click event

I'm using mootools and working on popup menu: document.getElement('.cart a').toggle( function() { this.getParent('div').removeClass('open'); this.getNext('.cart_contents').hide(); ...
XTRUST.ORG's user avatar
  • 3,374
1 vote
1 answer
49 views

javascript/mootools | Custom events

I have 1-st script: <script> App.validate(helper, form, "", // Simple request to the server function(data) { if (data.products_in_cart) { ... I dont't know how to ...
XTRUST.ORG's user avatar
  • 3,374
1 vote
1 answer
496 views

Mootools overriding window scroll

I know this is a bad idea but it's what the client has asked for so.... i'm using mootools to override the window mouse wheel scroll event, so basically when the user scrolls the wheel i'm preventing ...
user3110793's user avatar
2 votes
1 answer
373 views

In jQuery how to fire an elements event added in mootools?

I have a MooTools script (please dont ask why..) where elements are added a mouseenter event. In jQuery, I open/show those elements within a fancybox. When it pops up, the mouseenter event wont get ...
Alex's user avatar
  • 10.1k
0 votes
1 answer
238 views

Why is event in Firefox undefined when defining a pseudo event with MooTools?

I am trying to define a pseudo event with MooTools. It works in Chromium, but not in Firefox. Both browser are the newest stable version. Here is my event: DOMEvent.definePseudo('ctrl', function(...
lino's user avatar
  • 85
1 vote
1 answer
210 views

MooTools: How do I make an object capture a custom event occured in its nested object?

Here's the simplified code: <html> <head> <script type="text/javascript"> var ParentDiv = new Class ({ initialize : function(htmlElement) { ...
Anton Matyulkov's user avatar
3 votes
1 answer
1k views

How to determine error code on broken images with mootools

I need a script that can determine the reason an image didn't load based on the HTTP status code supplied. I am aware of the onError event on images and objects, but it does not pass the error code. ...
eXtenZy's user avatar
  • 67
0 votes
2 answers
483 views

Triggering JSON request from 'click' event in a selector box using Mootools

Im trying to trigger an asynchronous JSON request when I select an option from an HTML selector box using mootools. I have the following form element: <form method="post" id="sel"> <select ...
rocketas's user avatar
  • 1,699
1 vote
1 answer
251 views

bindWithEvent error while converting mooRainbow to mootools 1.4.4

I'm trying to get mooRainbow 1.2b ( http://moorainbow.woolly-sheep.net/ ) working with mootools 1.4.4 and I've run into an error that I can't seem to find an answer for. The error is thrown in this ...
Eric Alan Solo's user avatar
1 vote
3 answers
1k views

Why can't I set my input field with MooTools?

Ive got a document and when the user enters something into one input I need to show a response in a second input box. I can get the user given value, i can process it, but when I try to set the second ...
JeremyS's user avatar
  • 329
1 vote
2 answers
820 views

Mootools: how to stop delay events with 'mouseenter' and 'mouseleave'

I'm quite a newbie with javascript and mootols and I've got a question about delay and event handling with Mootools. My goal: the menu appears in a primary position, then after a certain time moves ...
user1236174's user avatar
1 vote
2 answers
96 views

How do you access an object instance in the second parameter of the Mootools fireEvent function?

I'm working through Implements: [Events, Options] in Mootools. I would like to pass a class property to the function that is called when an event fires. I would have thought that I could do it using ...
Rupert's user avatar
  • 1,629

15 30 50 per page