mootools Questions

3

Solved

I have a nested sortable list that can have items dynamically added or removed and can be nested n-levels deep. On nesting, a new ul element is injected into whatever li element is selected to be t...
Cradlesong asked 8/4, 2009 at 22:24

7

I'm calling handleNotableTypeSelect method on the click of the check box, everything is working fine but the page jumps to the top. this.$hideInactiveCheckbox.click( this.handleNotableTypeSelect...
Sporocyst asked 20/12, 2011 at 2:19

4

Solved

I am dynamically adding events using addEvent("keydown", function() {}); to an element. My problem is that there are times when this code gets run on the same element twice or more. The b...
Nikethamide asked 15/5, 2015 at 8:52

27

Solved

I am running an AJAX call in my MooTools script, this works fine in Firefox but in Chrome I am getting a Uncaught SyntaxError: Unexpected token : error, I cannot determine why. Commenting out code ...
Flowerlike asked 29/6, 2010 at 18:37

28

Solved

What is wrong with the code below? Maybe it would be simpler to just compare date and not time. I am not sure how to do this either, and I searched, but I couldn't find my exact problem. BTW, whe...
Westerfield asked 23/4, 2010 at 13:8

7

Solved

as you know that when you Embed youtube video in your web page, it works fine , but if you click on any part of screen, youtube website will open in new window. is there any way to Embed youtube v...
Fortune asked 4/1, 2010 at 19:24

7

Solved

I'm sure the answer is no, but is it possible to determine the width of an element before it is appended to the DOM? Once it's appended, I know I can use offsetWidth and offsetHeight. Thanks
Castleberry asked 27/5, 2010 at 13:18

6

Solved

Cross Platform if possible, how can I select classes in Javascript (but not Jquery please -MooTools is fine though-) on code that I can't add an ID? Specifically, I want to add the class "cf" on an...
Ole asked 23/1, 2014 at 21:17

4

In JavaScript I want to do the following: var pi = {}; pi[0]['*']['*'] = 1; of course this throws a "Cannot read property '*' of undefined" error. Clearly I can define p[0] = {}, but that's kind...
Escutcheon asked 11/4, 2013 at 9:15

3

Solved

I am using event delegation in mootools. I want to know the row number that has been clicked. My solution is shown in this jsfiddle: Is there a better way than what I am currently doing? My approa...
Pion asked 18/8, 2011 at 4:34

8

Solved

Is it possible in JavaScript to do something like preg_match does in PHP ? I would like to be able to get two numbers from string: var text = 'price[5][68]'; into two separated variables: var ...
Alysonalysoun asked 20/7, 2010 at 14:56

5

Solved

For say i have a Site called example.com on which iframe is embedded of domain iframe.net, now i want to read the content of iframe and pass some parameter to display a textual message. Like Hi wit...
Florrieflorry asked 22/2, 2012 at 11:1

4

Solved

I have a problem retrieving the exact css property value (in '%') on firefox. Suppose we have this extremely simple markup: <div id="box">box</div> and this css: #box{ width:200p...
Ecotone asked 5/12, 2011 at 15:11

6

Solved

I am trying to capture touch coordinate on the touchend event but get undefined. The touchstart event works good, but same concept fails on touchend. I built this code with mousedown and mouseup an...
Decoction asked 30/7, 2013 at 21:19

3

Is there an easy way to handle the movement event composed of click and drag to the left or to the right on a div, in order to do a classic slider. The idea is to do something similar to the scroll...
Binocular asked 23/4, 2011 at 19:8

7

Solved

How can I associate two arrays that contains keys and values into one array with key->value pairs? In Mootools there is associate function which does: var animals = ['Cow', 'Pig', 'Dog', 'Cat']; ...
Reminisce asked 28/5, 2014 at 9:51

4

Solved

I was wondering if anybody knows how I would go about detecting when the scrollbar appears inside a textarea. I am currently using mootools for my JavaScript and I am having issues getting it to d...
Biocellate asked 13/7, 2010 at 15:5

5

Solved

Is there a way to change the options array of an html select list using javascript or mootools? I need to replace the entire options set with a new one. In my ajax response I receive an array fil...
Trapani asked 15/6, 2011 at 21:40

11

Solved

Following is my JavaScript (mootools) code: $('orderNowForm').addEvent('submit', function (event) { event.preventDefault(); allFilled = false; $$(".required").each(function (inp) { if (inp.get...

7

Solved

Here's the deal, we have a big JS library that we want to compress, but YUI compressor doesn't fully compress the code if it finds an "eval" statement, out of fear that it will break something els...
Acanthus asked 3/2, 2010 at 20:50

6

Solved

I am working on a template for Joomla 2.5.x, using Twitter Bootstrap. I also want to use the Bootstrap Carousel Plugin for that template. I got a problem when the Carousel is used with Joomla´s Mo...
Messalina asked 5/5, 2012 at 14:22

5

Solved

We have had issues with Mootools not being very backward compatible specifically in the area of drag and drop functionality. I was wondering if anyone has had any similar problems with jQuery not b...

5

Solved

Using Mootools Element.Dimensions I can get the computed size, in pixels, of any element. However, I can find no way of telling whether an element has been sized using pixel or percentage values (o...
Doublespace asked 23/11, 2009 at 11:29

4

Solved

I'm fighting against an oddity (I think) of the offsetWidth property. this is the scenario: I've got, let's say, a span tag, in my js, at a certain point I perform a css3 transform to this elemen...
Cruzeiro asked 29/4, 2011 at 16:22

3

Solved

In my project I am using jQuery in client side and mooTools in admin side. I would like to be able to write some part of code (google maps functions, etc) which will be common for both of that libr...
Tidy asked 16/7, 2010 at 9:5

© 2022 - 2024 — McMap. All rights reserved.