All Questions
66
questions
1
vote
3
answers
3k
views
Event removal in Mootools, and syntax of event addition
So I have been adding my events thusly:
element.addEvent('click', function() {
alert('foobar');
});
However, when attempting to remove said event, this syntactically identical code (with "add" ...
1
vote
1
answer
115
views
Mootools Add click event with Drag.Cart
I use this example under jsfiddle.net, to build a drag&drop system and if I create a click event on shirts images (draggables), this event doesn't work.
How to combine drag and click events to ...
1
vote
1
answer
194
views
MooTools – Add class to page on click of anchor, with delayed loading of anchor link
I'm using MooTools to add two classes to the body on click of a link from a nav menu, which triggers an animated CSS fade of the page.
I want to delay the link from loading the new page until the ...
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
3
answers
325
views
Avoid anonymous function in Mootools?
Here's my problem: I'm looking for a way to work with 'not anonymous' function in Mootools.
Can't find a way to work it out, and I couldn't find doc about it.
Example:
var myInput = new Element('...
1
vote
1
answer
5k
views
Mootools doesn't fire the "onChange" event for Selects in IE7
I'm working with MooTools 1.2.4 and I have a select with an event "change" that works fine in Firefox but when I try to test it in Internet Explorer 7 it gives me an error saying that the ...
1
vote
2
answers
599
views
Dom Element onclick (MooTools :: optionally)
Consider the following example:
function async_callback(array1, array2, array3) {
// All arrays are equal length
for(var i = 0; i < array1.length; i++) {
var myElement = new Element('div',...
1
vote
1
answer
149
views
how to define a private event [Port Mootools to jquery]
I'am a big mootools fan.
But now I have to port a mootools-snipe to jquery and I do not get it.
I' am using this code:
var prev_m_x = 0;
var prev_m_y = 0;
window.addEvent('mousemove',function(e){...
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
1
answer
675
views
Mootools: how to stop event, when other event happens
i´ve got a question about mootools eventhandling.
I wanna delay a mouseenter event for a dropdown navigation. After 1 second the drowdown list will be shown by "setStyle('display', 'block')...this ...
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
68
views
Mootools class: call a class method from an event handler
is it possible to call a class method from within an event handler?
I mean, something like this:
initialize: function(options) {
/* initial options */
this.setOptions(options);
this.area =...
1
vote
2
answers
500
views
map keyboard keys with mootools
I am looking to make the enter key behave exactly like the tab key on a form.
I am stuck on the fireEvent section.
var inputs = $$('input, textarea');
$each(inputs,function(el,i) {
el....
1
vote
1
answer
1k
views
Javascript Mootools event stop
well,i have this script that i have set up that on submit requests php file that is used to validate my input values...i have set up that when it is not validated the correct way to echo it is not ...
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 ...