All Questions
36
questions
0
votes
2
answers
705
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"...... &...
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) {...
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 ...
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(); ...
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 ...
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 ...
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 ...
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(...
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) {
...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...