All Questions
66
questions
0
votes
2
answers
201
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 ...
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 ...
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 ...
0
votes
1
answer
163
views
Where does Event.Keys gone?
Did I miss something or the Event.Keys object has gone from mootools since 1.4.0 ?
I cannot get the real value of a key or compare it to the current pressed key :
var modifiers = {
previous: ...
0
votes
1
answer
374
views
Dynamic change of the class of an HTML element not working effectively
I've written an HTML page that contains a form. The form is checked by a PHP page by having at the beginning of the HTML page :
<script type="text/javascript" src="js/mootools/core.js"></...
0
votes
2
answers
1k
views
Attaching Events To Classes In MooTools?
I am fairly new to MooTools and I'm just a little confused about how to use it and would like a few pointers.
For example, in my app, when an object of one of my classes is initialized, it creates a ...
0
votes
2
answers
4k
views
submit a form with mooTools, and have the forms inline onsubmit event fire...help
Im writing a class that replaces all input type="button" and input type="submit" in the document with a custom button, that is actually a span stuffed inside of an anchor tag, i've got everything ...
0
votes
1
answer
503
views
JavaScript, MooTools and variable/object scope
I might be using the wrong patterns here, but if I am, I hope someone can correct me!
I have an object which represents a user's workspace and, in response to a server action, it clones a div, ...
0
votes
1
answer
543
views
Mootools Shift-Tab Event Problem
Im using the most recent moo release and trying to write a function that evaluates the user given expression on event "keyup". As soon as my test's are passing I put the focus on the next input ...
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
716
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
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:...
0
votes
2
answers
541
views
Handling Mouse Events Behind An Element
I'm implementing a drag and drop interface using Mootools, where a ghost copy of the dragged element is created and moves around with the mouse. I want the user to be able to use the mousewheel to ...