All Questions
66
questions
0
votes
1
answer
36
views
mootools Class overload
I cannot overload class function
var Input_text = new Class({
initialize: function(obj, defo){
that = this;
if (obj) {
this.elem = obj;
this.elem.addEvent('keyup', function(...
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"...... &...
0
votes
0
answers
78
views
How to add event keydown in mootools
Please, help me!
This is my code:
this.rez[str].each(
function(v){
var li = new Element('li', {
'html': v[1],
...
2
votes
1
answer
83
views
how to control the back button with mootools?
This is how it looks for jQuery.
How can I achieve the same thing with Mootools?
$(window).on("navigate", function (event, data) {
var direction = data.state.direction;
if (direction == '...
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 ...
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(); ...
0
votes
1
answer
61
views
Reference an accordion instance in Mootools
I'm using a CMS (Joomla 3) to show an accordion. Beyond the default functionality, I wish to put a button on each pane of the accordion to step to the next pane. Normally this would be done at the ...
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 ...
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
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 ...
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 ...
3
votes
1
answer
432
views
Access class attribute in event handler in js-mootools
I have a JS object (working with mootools) wich has stored some DOM elements and attach to them event listeners:
window.myObject = {
init: function(el1ID, el2ID){
this.myElement1 = ...