All Questions
9
questions with no upvoted or accepted answers
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. ...
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 ...
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:
...
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],
...
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',
...
0
votes
2
answers
2k
views
MooTools events not firing in IE8
I have a Mootools asset created like so:
// Create a new asset
var asset = new Asset.image(path, {
title: this.language.download,
events: {click: this.download.bind(this, link)},
});
I have ...
0
votes
1
answer
1k
views
Remap Enter keydown to trigger Shift+Enter in JavaScript
I'm using Mootools, but a generic answer is fine.
I would like to remap the 'Enter' key in a web application.
When they hit 'Enter' it should react as though the 'Shift-Enter' has been pressed.
I ...