Questions tagged [mootools]
MooTools is a compact, modular, object-oriented prototypal JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.
2,593
questions
0
votes
0
answers
14
views
Landbot VS Mootools : Error on integration
I'm trying to integrate landbot with an old site based on Mootools.js
Landbot seems to be incompatible with mootools. Any help ?
Uncaught (in promise) Error: Minified React error #332; visit https://...
0
votes
1
answer
21
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
0
answers
108
views
Google ReCAPTCHA v2 placeholder element must be an element or id
I've had google recaptcha v2 running from last few months but now suddenly it stopped working on my live site (https://blisspot.com/signup). Its working fine on dev site (https://dev.blisspot.com/...
0
votes
1
answer
42
views
Is the current 1.6.0 version of MooTools compatible with older versions?
I'm upgrading from MooTools 1.3 to the newest 1.6.0, but when I do the date picker on my site disappears. I tried all the old compat versions of MooTools between 1.3 and 1.6.0 (1.4.5, 1.5.1 and 1.5.2) ...
1
vote
0
answers
106
views
fullcalendar.io and mootools conflict
I'm trying to use fullcalendar.io and mootools libraries in same web site.
However I have this error:
TypeError: t is undefined xxx_core.main.min_1.js:9:22019
The file xxx_core.main.min_1.js ...
1
vote
0
answers
51
views
Why are Python requests slower than MooTools and jQuery?
I'm trying to create an API for a chat service. Sending a request after another is required for the chat to work. I started implementing it with Python requests but it was very slow. I also tried ...
1
vote
0
answers
38
views
Mootools/Jquery Scripting
This is my first exposure with using Mootools; I have not used Jquery much, and I am having troubles implementing a new change to the scripting.
We used a flash uploader, FancyUpload2 and I have ...
0
votes
2
answers
243
views
How do I get jQuery and Mootools on the same Contao page?
I am working on a Contao site that is supposed to be upgraded from 2.11.6 to 3.5.40 because the provider will soon force a PHP upgrade from 5.6 to 7.3. The upgraded site should look and feel like the ...
0
votes
2
answers
100
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
43
views
Prepending javaScript element with html snippet into another html node
I am trying to insert a html block of code before the previous one. I am using the prepend() method to insert into a list and it works I am inserting where I want but its only outputting the plain ...
1
vote
2
answers
47
views
Mootools JSON request returning not found error
I added an icon next to a file that, when clicked, will mark the file as a redline and change the color of the text of the filename. My boss wants me to do this via AJAX, but I've never done AJAX ...
0
votes
1
answer
29
views
Using JavaScript Event rather than MooTools Element.Event
I have inherited a codebase which implements MooTools 1.4.5.
The code also utilises a third party library to handle dragging on responsive devices. The following code is in that library:
var ...
0
votes
1
answer
25
views
How to get the value of data-id-proofinglevel in option
I have an dropdown that lists people available for a job. In each option there is a value and a data-id-proofinglevel. I would like to get the value of the data-id-proofinglevel for the selected ...
1
vote
1
answer
66
views
How do I figure out why the MooTools stopped working?
I worked on a page that has MooTools in it and now the MooTools is not working.
It is supposed to detect when a change has been made to a dropdown and save the change and the field flashes green. I ...
1
vote
0
answers
406
views
Mootools breaks Google maps streetview - black screen
Including the mootools.min.js in the Maps JavaScript API Hello World example causes the street view feature to fail rendering street images. I'm working with Joomla and mootools gets loaded prior to ...
-1
votes
1
answer
44
views
Autofill an HTML select list
Scenario: I have 5 select boxes that hold the 5 weekdays and Instead of having the user click and choose a value for each one I want them to have the option of choosing the first box and have a button ...
2
votes
0
answers
1k
views
Difference between INPUT_GET and INPUT_POST
I have this line of code in my php file where I am have a question regarding the line of code. What would be the difference if I did this to verify my date variable?
Retrieve.php
$firstDate = ...
1
vote
0
answers
80
views
Field value changes to undefined if no date chosen on datepicker and how to close onblur
I have a text field that opens a datepicker onclick. I would like the datepicker to close onblur, and I am getting 'undefined' in the field after closing the datepicker without choosing a date.
I am ...
1
vote
1
answer
556
views
How to hide table header row if no child rows, but show header row again if button clicked
I have a table with existing jobs and have a button to add new rows to that table if the user wants to add another job. When the user first clicks on the Add New button, a header appears above the ...
0
votes
1
answer
119
views
How to increment a generated value in a dynamically-displayed webpage
I have a page that allows the user to add child jobs to the parent job by clicking a button to display a new row in a table (to fill in the details of the child job). One of the fields in that row is ...
0
votes
0
answers
62
views
How to check if a field that is displayed on a button click is loaded
I am very new to MooTools and fairly new to JavaScript.
I have created a template that displays a row on the click on a button. Each time the button is clicked, another row appears.
One of the ...
0
votes
1
answer
50
views
Using Mootools to inject a template into an existing table, but getting rownum is undefined at eval
I am very new to MooTools and somewhat new to JavaScript.
I am trying to get a new row to show up on a button click. I have copied the code that another programmer did and adapted it to suit my needs ...
1
vote
1
answer
98
views
calculatematrix using the javascript API rather than REST
I'm trying to use the calculatematrix API to take a load of destinations and calculate the driving distance to them from a given location (my examples first convert the postcode to a latlng)
Using ...
-2
votes
1
answer
37
views
Javsacript for loop giving out weird results
I wrote a simple for loop to perform some DOM manipulation based on the json response. Here's the code I have
onSuccess: function(a) {
var b = a.items.length;
for (i = 0; i < b; i+...
1
vote
2
answers
208
views
Change a input text with select
I'm trying to change an text input to a select list with mootools when my condition is successful. The problem is that when I use the function replaces(), it doesn't work.
window.addEvent('domready', ...
1
vote
1
answer
64
views
Implementing mixin like functionality with EcmaScript6
While switching from Mootools to EcmaScript Classes I need to add some pre-built functionalities to classes. Like events...
Mootools uses an Implements parameter in Class for this.
var Widget = new ...
0
votes
0
answers
151
views
HLS player with mooTools 1.4.5
We've bene hired to do some work on a site that uses mooTools 1.4.5 as its javascript framework.
For the sake of this project we need to be able to play HLS video streams on that site. We tried to ...
1
vote
0
answers
27
views
I cannot loop in Fx.Move
I want to loop for ovject 'tablo' and move each position and loop to the next.
It is my source:
var tablo= {0:{x:5, y:12}, 1:{x:10, y:25}, 2:{x:7, y:22}, 3:{x:15, y:2},4:{x:13, y:30}};
var myfx;
...
0
votes
1
answer
71
views
create a range selection on click in a div
I have a div:
<div>Lorem ipsum dolor sit amet, <b>consectetur adipiscing elit.</b> Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo ...
0
votes
1
answer
61
views
mootools - request json with freegeoip
I am trying to display city and region data in a html element using JSON feed from freegeoip.net. I am pretty new to Mootools and I am not sure where I am going wrong with my current script.
My ...
1
vote
0
answers
113
views
Mootools Type Definition File
On http://definitelytyped.org/, there are a lot of typescript type definition files for various well-established javascript libraries. However, I cannot find any for MooTools though. Any ideas?
Just ...
0
votes
1
answer
24
views
QBO3 form validation classes being overwritten
I have a QBO3 form that I've added custom javascript to for validation. When I add a 'validation-failed' class to my element using:
set('class','Validation-Failed')
which causes the UI to behave ...
1
vote
1
answer
55
views
Using 'Class' and ES6
Is there a conflict of behavior for using the Class expression, since it became a reserved word in the latest version of Ecmascript? Can't say if there is identity of grammar between the two contexts, ...
0
votes
1
answer
169
views
Selecting last element of a list
Trying to select the last element of a list, I can't grasp the fundamentals of getElements, here is the html code
<section class="main">
<ul>
<li>Lorem ipsum dolor sit amet.</...
0
votes
1
answer
49
views
Is Mootools' $$ a synonym of jQuery's $?
I consider jQuery's $ function very handy. I know MooTools returns an Elements instance, but as a selector are there specific differences? Can you select whatever node on the Dom tree?
2
votes
1
answer
1k
views
Can I get contentDocument of dynamically created object tag in JavaScript?
I load a SVG file from an object tag and access its content from a JavaScript.
$(document).ready(function() {
$(window).load(function () {
var a = document.getElementById("svgObj");
...
1
vote
2
answers
560
views
jsFiddle Throws Console Error
I am an experienced developer, but I am new to JavaScript.
Having an issue with JavaScript, I decided to use jsFiddle, which is also new to me.
I found this tutorial:
http://doc.jsfiddle.net/tutorial....
1
vote
3
answers
187
views
How to remove “onclick” with Mootools
I want to click other element to remove attribute on click with element a ;
I used html like this:
<a href="#" data-value="all" class="search-item" onclick="showCat(this)">全部商品</a>
And ...
1
vote
0
answers
85
views
Squeezebox show custom content (no iframe)
I'd like to show some custom (HTML) content on a squeezebox (within Joomla).
To show an iFrame I'm using this code:
window.addEvent('domready', function() {
SqueezeBox.open('https://whatever.com',...
2
votes
0
answers
234
views
Tabs does not work with mootools on joomla
Front-end article editing on Joomla! uses Mootools and my template uses Bootstrap (custom joomla) and jquery (1.12.4).
Edit article is divided into tabs, which do not work. When I load form via CTRL+...
2
votes
0
answers
648
views
Cleave.js PhoneFormatter not working
I'm trying to implement Cleave.js with MooTools.js but although I'm doing it correctly (or so I believe, the implementation is very simple) I can't seem to get it to work no matter what.
I also tried ...
0
votes
1
answer
291
views
How to prevent conflict between mootools and jquery for using selectvizr?
I need to be able to support all CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. The polyfill called selectivizr allows you to do this. It needs a javascript library such as ...
1
vote
1
answer
48
views
disable mootools sortable function without editing original
i've never worked with mootools before , i have to kill this specific sortable function , but i can not edit the original script , so i need to recall the function and disable it from triggering
any ...
1
vote
0
answers
38
views
Do allow sorting of sortable items to be placed in unsorted items areas
I'm using mootools sortable , here is function below I have to be able to sort some tabs. I have disable a few tabs from sorting , but the other tabs that are allowed to be sorted can be moved into ...
0
votes
1
answer
72
views
Knockout JS select box issue
I am using knockout 3.4.0 for my project along with MooTools . I need to store an information of fields. One of the information is a select box which was loaded through KO .
<select data-bind="...
0
votes
0
answers
41
views
how to replace the existing clone data to new data retrieved
var copy = $('sports1').clone(true);
copy.getChildren("span.yearsplayedtext").set('html', yearsplayed);
$('profile-sports-holder').appendChild(copy);
$('profile-holder-sportsadd').hide();
1
vote
1
answer
71
views
Mootools login facebook
In a simple webpage I want user to be able to login with his facebook acount which is in javascript and mootools framework. The code is:
var moofb = new MooFB.Base(APP_ID);
$('login')....
2
votes
1
answer
151
views
MooTools Class setOptions: Maximum call stack size exeeced
I am trying to pass easelJS shape object as a parameter to the MooTools new Class object and then I get the Maximum call stack size exceeded error.
This works fine in my class code:
initialize: ...
1
vote
1
answer
219
views
Mootools Request.HTML returns undefined
I am loading Mootools dynamically in the scripting part of an app (AutoWWW) because it does not allow direct HTML usage.
I am using Request.HTML and want to get the html of a page but it returns an '...
1
vote
1
answer
141
views
MooTools and Array prototype
Mootools is overridding the Array prototype, and the problem is that this prototype and I have an external .js (a library that I can't modify manually) that iterates using for(i in someArray) and it ...