Questions tagged as 'mootools'

2
answers

How to avoid conflict between jQuery and Mootools

What good practices to avoid conflicts between the jQuery and Mootools libraries? This example gives the error Uncaught TypeError: Object [object Object] has no method 'fade' //codigo Mootools $('sobreCamada').fade('in'); //codi...
asked by 21.12.2013 / 00:46
1
answer

What is the difference between $ ('id') and $$ ('# id') in MooTools?

For those of you who are familiar with jQuery, the existence of two functions to select elements in MooTools seems a bit confusing. Considering that I have some element like <div id="id">Conteúdo</div> What's the difference b...
asked by 02.11.2014 / 01:34
2
answers

Currency exchange online

I spent some time looking for a site where I can change currency. Where can I make requests via client-side script using a url address and receive a JSON object with the conversion. (I ended up finding a solution I like that I put here.)    ...
asked by 17.12.2013 / 00:17
1
answer

Mootools detect page movement

How do I detect when a page is rolled to a certain point, and when it reaches that point do a certain action. That is, using MooTools, such as event scroll , change the style of an element. Look at a similar example , but this just does sc...
asked by 23.11.2014 / 18:35
1
answer

What is the real gain in using MooTools!

Not only in the manipulation of elements in the Dom, but in its object-oriented architecture. What real gain in using instead of JQuery. We take as an example a simple inventory control system, with some cruds. What is the use of MooTools in thi...
asked by 18.05.2016 / 18:35
1
answer

check empty input

I have an input text and want to check if the value is empty. In my example I have this: var qttDeclared = tr.getElement("input[name$='[qttDeclared]']").get("value").toInt() if(qttDeclared == "") { console.log("vazio"); } But th...
asked by 14.02.2017 / 09:19
2
answers

MooTools request: onSuccess does not fire

I'm using KnockoutJS in conjunction with MooTools, but I'm having trouble with Request . <div class="form-group"> <select data-bind="options: classificacoes, optionsText: ds_classificacao, optionsValue: id"></select>...
asked by 15.09.2014 / 15:39
1
answer

Problem with select in KnockoutJS and MooTools

I'm having a problem with a simple test with KnockoutJS in conjunction with MooTools: <div> <select data-bind="foreach: animais"> <option data-bind="text: nome, value: id"></option> </select> </...
asked by 14.09.2014 / 23:46
1
answer

Animate the position of div elements with MooTools

How do I change the position of a div after page loading? That is, have two div's that after loading page one appears from the right and the other from the left, using MooTools. The most similar example is this (but here with jQuery). <...
asked by 27.10.2014 / 20:39
1
answer

MooTools interferes with jQuery?

Good morning. My site uses jQuery, but I need to add a code that sends a confirm() to close the browser, but I realized that it only works with the library mootools : window.addEvent('load', function () { window.onbeforeunload =...
asked by 16.07.2015 / 15:04