In mootools I use the Request.JSON(options).get(); to send a request to the server.
Options is:
{'onSuccess':function(){alert(1)},'url':'https://192.168.12.219/reports/get/favorite/details/?report_id=7'}
the url I am in is: https://192.168.12.219/reports/container/
So I do not see any issues with cross domain (this code works perfectl...
I am doing an AJAX request. In my onFail event of the Request I catch the XHR object.
What is the name of the member in this object that holds the code.
For that mater, I could not find a documentation that shows the list of members in that object.
...
Hi everyone,
I'm after a very basic bit of Mootools JS that takes a list of images within my main container and moves them left to right within the overflow window.
I don't want to download a class or any of that rubbish. I just want a basic script where I can click 'previous' and 'next' to cycle through the images with it displaying o...
Hi,
I am using formcheck mootools plugin.
On clicking edit button:
I need to trigger when form submit; when validation is success.
I need to see error messages when validation fails.
new FormCheck ('editForm',
{
submit: false,
onValidateFailure: function() {
alert('fail');
},
o...
Hi,
I have got a template which is really nice with great Ui. But they used jquery and mootools without any prob. And now i incorporate that one with magento but i have the prob with prototype. Is it possible to use all these libraries together. Please help me.
And one query with stackoverflow : here i had more than 110 reputation but ...
Dear all,
as MooTools 1.3 is out now, i´m going to update some scripts. BindWithEvent is now deprecated and has to be replaced, but how?
See this:
new Element('div', [.....]).addEvent('click',this.close.bindWithEvent(this,true));
I´m quite sure it has to be some sort of a function
new Element('div', [.....]).addEvent('click',functio...
anyone come across the yootheme warp framework that allow us to delay the drop down menu ?
I tried play around with the template.js file but to no avail
...
Update: This works in firefox, but does not work on chrome 6, still investigating.
I'm taking an internet programming class and learning various javascript frameworks. I'm working on a mootools problem, and the .get('text') method does not appear to be working as expected on responseXML.
Here's the responseXML:
<?xml version="1.0" en...
There are some css properties that can only(as far as I know) be modified as a set of values, like text-shadow (text-shadow:<xOffset> <yOffset> <radius> <color>;). I've seen some referred to as shorthand values, even though I've never seen the longer syntax version.
So, in a nutshell I'd like to modify individual parts of a declaration ...
What I'm trying to do is: when you mouse over any word in a body of text say for two seconds, it will become underlined. And if you click it, it will stay underlined until you click anywhere else or you click it one more time. Any suggestions?
...
I'm looking through the MooTools source to try and understand its .implement() and .extend() utilities.
The definition of each refers to a function defined like this:
var enumerables = true;
for (var i in {toString: 1}) enumerables = null;
if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerab...
When I resize the browser window to a lower width than 477px, window.innerWidth or window.getSize().x (using mootools) still returns 477px.
Anyone ever had that problem? What's going on here?
The problem occurs in Firefox and Chrome.
...
This might be the simplest question of the day.
I'm looking for the best answer based on all knowledged across community, not a basic tab effect but one that could be scalable, easy to implement and compliant with standards.
What could be a good and simple (compatible) way to accomplish having different sections with javascript. I pers...
My question is simple. It's feasible to develop extensions with mootools?
...
Hi all,
I have just placed iepngfix.htc to fix the PNG problem in ie 6, but when I include the mootools 1.3 png fix is not working.
Do you have any fixing code for this?
Thanks
Avi
...
I'm trying to initialize a javascript class from inside a function. The class is a mootools class in a separate .js file. To be specific, this one: http://digitarald.de/project/autocompleter/
For my application I've created a function which gets called after a user clicks on a link. This function is in a separate file and is called edit...
Hi,
is it possible to prevent further execution of javascript?
i include some javascript scripts with php in a header (with echo ''), but there are coming some other scripts later in the page which i can not always control, so it could be that my before included (with ) mootools javascript get later overwritten by another included moot...
Let's take some pseudo-Mootools code:
for loop (i) from 0 to 5 {
create.element {
id: 'element_'+i
}
$('element_'+i).addevent.click {
alert(i);
}
}
The events get added to the elements properly. However, when clicked, they'll all alert the latest iterator... which would be 5.
Is there any way I can cha...
Hi all,
I wonder how to replace the bindWithEvent funtion in Mootools 1.3, the example in the documentation is very basic:
Element.addEvent('click', function(e){
myFunction.bind(bind, [e]);});
But, what about if I need to pass a param to the event handler? This is the way in Mootools 1.2:
Element.addEvent('click', function(e, param) ...
Background: I'm currently working on an intranet site that makes use of the MochaUI library (working from the virtual desktop demo). I'm using Mootools 1.2.4 and MochaUI 0.9.7. The windows that are opened in my "virtual desktop" implementation load their content via iframes. Some of the loaded pages are pretty hefty in terms of css and s...