Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
1 vote
1 answer
479 views

Adding custom code to mootools addEvent

Even though I've been using mootools for a while now, I haven't really gotten into playing with the natives yet. Currently I'm trying to extend events by adding a custom addEvent method beside the ...
jpeltoniemi's user avatar
  • 5,540
1 vote
2 answers
1k views

MooTools request fails

I am trying to achieve this task using MooTools. Description: I have three buttons. Two buttons outside myDiv and one button inside myDiv. A click on any of these buttons initiates an AJAX request (...
acoder's user avatar
  • 523
1 vote
2 answers
1k views

Extending mootools Element.Events

I'd like to create a custom paste event that would fire either input (FF) or onbeforepaste (IE). I've read pretty much all about creating custom events in mootools, still the event does not get fired ...
user avatar
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
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
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
1 answer
553 views

mootools disable or intercept an added event

let's say i do this: $('field').addEvents ({ 'focus' : function() { // do some stuff } 'blur' : function() { // do other stuff } }); this is the default behaviour for all my text input fields. ...
WhiteRau's user avatar
  • 859
1 vote
1 answer
1k views

Mootools 1.2.4 delegation not working in IE8...?

So I have a listbox next to a form. When the user clicks an option in the select box, I make a request for the related data, returned in a JSON object, which gets put into the form elements. When the ...
michael's user avatar
  • 11
1 vote
0 answers
122 views

How to get a Mootools event on an element passed to mako by cherrypy to work?

So I have in index.py: class Test: @cherrypy.expose def index(self): return mylookup.get_template('test.html').render(item="<div id='blah'>test</div>") And in test.html: ...
cherryUser's user avatar
0 votes
3 answers
1k views

How to trigger event on dynamically generated elements (in mootools)

Example to demonstrate the issue can be found here: http://jsfiddle.net/Byyu2/ As you can see only the first "Add" button triggers an event. The dynamically generated button does not. This is ...
denormalizer's user avatar
  • 2,204
0 votes
1 answer
2k views

Emulate domready event with a custom event (mootools)

I need to fire a one time only custom event that functions like the domready event, in that if new events are added after the event has occurred they are fired immediately. This is for some code that ...
Rob's user avatar
  • 8,158
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
125 views

Can someone explain jQuery's addEvents feature?

I saw this code on someone else's website, but found no reference to it on jQuery's site. window.addEvents({ 'domready': resizer, 'resize': resizer }); Can either: someone point me to the ...
Mazatec's user avatar
  • 11.6k
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
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

15 30 50 per page