Questions tagged [mootools-events]
73 questions
                    
                    23
                    
            votes
                
                1 answer
            
        Adding event to element inside Google Maps API InfoWindow
I want to put a form with input field and submit button inside a Google Maps API (v3) InfoWindow.
When submitted I would like to call a function that initiates the directions service using the address entered into the input field.
Here's my code…
         
    
    
        timwjohn
        
- 277
- 1
- 3
- 11
                    11
                    
            votes
                
                2 answers
            
        JQuery equivalent of MooTools bind(this)
I'm trying to rewrite a Mootools tooltip class in JQuery using this class plugin. When my class is instantiated I'm attaching an event listener to a target link which will fade out the tooltip.
In event callbacks JQuery assigns the keyword "this" to…
         
    
    
        And Finally
        
- 5,602
- 14
- 70
- 110
                    11
                    
            votes
                
                3 answers
            
        
                    7
                    
            votes
                
                2 answers
            
        Programmatically fired events not working with event delegation
Would really appreciate if anyone can help me figure out why I am unable to fire events programmatically when using event delegation in MooTools (from the Element.Delegation class).
There is a parent 
            
            
                
                    
    
    
         
    
    
                
            
        
    
 that has a change listener on some child…
         
    
    
        Anurag
        
- 140,337
- 36
- 221
- 257
                    3
                    
            votes
                
                1 answer
            
        Why is event e undefined in callback when firing event manually?
I am using Mootools and adding a click event to a link. I have added a function to an event with this:
$('addCallRoute').addEvent('click', addCallRoute); // Add button
The function contains this:
function addCallRoute(e) {
   …
         
    
    
        Kristian
        
- 21,204
- 19
- 101
- 176
                    2
                    
            votes
                
                1 answer
            
        Add event to dynamically generated element
How can I add an event to an element which was loaded by AJAX.
jQuery has live, but what's the Mootools equivalent?
For example:
window.addEvent('domready', function() {
    // some code which loads new elements by ajax
    // Filter
   …
         
    
    
        Mirgorod
        
- 31,413
- 18
- 51
- 63
                    2
                    
            votes
                
                1 answer
            
        Fancy Upload does not work with mootools 1.4.1 due to fade/tween errors
I am trying to integrate Fancy Uploads "Queued Photo Uploader" into my website but the Clear List and  Start Upload click events are not firing.
I have stripped out all of my code and resorted to copying and pasting the working example from the…
         
    
    
        My Head Hurts
        
- 37,315
- 16
- 75
- 117
                    2
                    
            votes
                
                1 answer
            
        Mootools Form.Validate is not firing events
I don't know why the Form.Validate Class is not firing the events when an input fails. This is a simple test I've made:
HTML
                    2
                    
            votes
                
                2 answers
            
        mootools stop event bubbling when using Event.Delegation (:relay)
I am adding events to links that are loaded via ajax. Here is a simplified example of the html:
All content within ".ajax-content"…
         
    
    
        Still don't know everything
        
- 901
- 2
- 11
- 21
                    2
                    
            votes
                
                1 answer
            
        MooTools version of jQuery's namedspace events?
jQuery lets you do things like
$div.bind('click.namespace', function)
$div.unbind('click.namespace')
Is there any equivalent in MooTools? I tried defining a pseudo event:
Event.definePseudo('shim', function(split, fn, args) {fn.apply(this,…
         
    
    
        Andy Ray
        
- 30,372
- 14
- 101
- 138
                    2
                    
            votes
                
                3 answers
            
        Opera onkeyup broken? Repeats, fires while down
When I add any onkeyup event, it does not do what it's supposed to in Opera. It fires repeatedly while the key is held, not when it's released. This same event works correctly in Chrome and Firefox. I have no listeners for keydown or…
         
    
    
        Billy
        
- 23
- 4
                    2
                    
            votes
                
                3 answers
            
        jQuery.getJSON equivalent in MooTools
Is there any jQuery.getJSON() equivalent in MooTools? I have a json file named data.json and I want to get its content by calling data.json file using MooTool. Is it possible? I tried Request.JSON() method but it didn't work for me. The below is my…
         
    
    
        Johncy Binoy
        
- 169
- 3
- 13
                    2
                    
            votes
                
                1 answer
            
        How to programmatically click an element with MooTools?
In jQuery, I've done stuff like this in the past:
$('#someCheckbox').click();
And everything works as if the user just clicked on the element normally. 
However the same doesn't work in MooTools:
$('someCheckbox').fireEvent('click');
The checkbox…
         
    
    
        adamJLev
        
- 13,713
- 11
- 60
- 65
                    2
                    
            votes
                
                1 answer
            
        Remove MooTools events using a Greasemonkey script?
I'm trying to modify a page that uses MooTools to add event-listeners to some fields, like so:
$('inputPassword').addEvents({
    keypress: function(){
        new WorkspaceModalbox({'href':'someurl.phtml', 'width':500, 'height':140,…
         
    
    
        Carlos Garces
        
- 829
- 1
- 11
- 24
                    2
                    
            votes
                
                2 answers
            
        Prevent multiple AJAX requests
Problem: 
AJAX call gets called multiple times though it has been called once.
Functionality:
I make a AJAX call(mootools Request.JSON) on click of a button. The initial call gets complete however there are multiple calls which get initiated. The…
         
    
    
        Zohaib
        
- 417
- 9
- 24
