Skip to main content

All Questions

Tagged with
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(...
Michel J's user avatar
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
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], ...
Andrey Dovgan's user avatar
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 == '...
Torsten's user avatar
  • 91
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 ...
Kevin Campion's user avatar
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
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 ...
Jeepstone's user avatar
  • 2,601
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
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 =...
gabric's user avatar
  • 1,955
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 ...
jasonbradberry'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
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 = ...
Federinik's user avatar
  • 522
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....
Adriaan Nel's user avatar
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
0 votes
1 answer
344 views

mootools validate and submit form on link click

How can I validate my form and submit it on link click event? My code below: new Element('a',{ 'html': "To cart", 'class': 'shop_add', ...
XTRUST.ORG's user avatar
  • 3,374
0 votes
1 answer
155 views

Mootools. New element with events in loop

I can't find the problem. May be you can help me: load_images: function(config, container, page) { console.log(page) // Every time page = 4 Why? var paging = new Element('div','class':'pg'})....
XTRUST.ORG's user avatar
  • 3,374
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){...
hamburger's user avatar
  • 1,415
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
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 ...
Shile's user avatar
  • 1,063
0 votes
1 answer
109 views

Mootools Lightbox with Img Slider

I use the Mootools Mediabox for my Site. This one mediaboxAdvanced v1.4.6. Now i looking for a solution that the image change automatically afer 5 Sec. In the code i found thie {id:"mbNextLink",href:...
user1551496's user avatar
0 votes
1 answer
259 views

scope of 'this' inside mootools class

I'm trying to define a click handler in a Mootools class. My handler presumes opening a block of links, each of which should be 'equipped' with its own click handler, which should trigger a link ...
proglammer's user avatar
0 votes
2 answers
200 views

run mootools function on each element except the one

I have two maps: var map1 = document.id('map1'); var map2 = document.id('map2'); The second map is hidden. map2.setStyle('display','none'); On the first map there is an element (link) that has an ...
Delicja's user avatar
  • 193
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
2 votes
1 answer
780 views

Mootools: how fired a function (or more functions) after the end of a tween or morph FX or other event?

as title, I would to knoe how can I do to fired a function after the end of an event. Thanks!
Donovant's user avatar
  • 3,139
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

15 30 50 per page