mootools

Mootools: Drag and Drop problem

I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for mootools with no response. My question is why doesn't the 'enter', 'leave...

Using shadowbox disables keyboard shortcuts?

So my site uses shadowbox (http://mjijackson.com/shadowbox/) to do display some dynamic text. Problem is I need the user to be able to copy and paste that text. Right-clicking and selecting copy works but ctrl+c doesn't (no keyboard shortcuts do) and most people use Ctrl+c right? You can see an example of what I'm talking about here: ...

Close mootools Rokbox through Javascript

I am using the mootools based Rokbox plugin, on one of my sites, and I can't figure out how to close it with javascript. I triggered the click event on the close button, but that did not work. I found the code in the rokbox source that is used to add the click listener this.closeButton.addEvent('click',function(e){new Event(e).stop();...

How do you get the response from the Request object in MooTools?

How do you access the response from the Request object in MooTools? I've been looking at the documentation and the MooTorial, but I can't seem to make any headway. Other Ajax stuff I've done with MooTools I haven't had to manipulate the response at all, so I've just been able to inject it straight into the document, but now I need to mak...

Any ideas on how to make edit-in-place degradable?

I'm currently writing an edit-in-place script for MooTools and I'm a little stumped as to how I can make it degrade gracefully without JavaScript while still having some functionality. I would like to use progressive enhancement in some way. I'm not looking for code, but more a concept as to how one would approach the situation. If you h...

What tasks do you use JavaScript for the most?

What types of JavaScript scripts do find most useful in your work? What tasks do you use JavaScript for the most? Are there scripts that you wished were out there but just haven't been able to find? I'm trying to create a library of MooTools plugins and so I'm always looking for inspiration and advice. I'm trying to concentrate on utilit...

Should I convert from MooTools to jQuery?

I have a fairly large codebase that depends on MooTools v1.11 and am about to convert to version 1.2. Since this is a pretty major overhaul, I've toyed with the idea of converting to jQuery. Anyone have advice on whether to update to jQuery or just stick with MooTools? I mostly use MooTools for Ajax, drag and drop, and some minor ef...

mootools or javascript : what does $tmp stand for or what does it pertain too

im currently working on the Tips.js from mootools library and my code breaks on the line that has those el.$tmp and console says its undefined can anybody help me? ...

Is there a jQuery equivalent of MooTools' Element() constructor?

I am going to be starting a javascript reporting engine for my website, and have started some prototyping using MooTools. I really like being able to do things like this: function showLeagues(leagues) { var leagueList = $("leagues"); leagueList.empty(); for(var i = 0; i<leagues.length; ++i) { var listItem = getLeagueLi...

help: javascript if statement returns wrong values

if ($('status_'+id).getText()=="Active") anybody knows why JS returns false even if the passed string is "Active"? i also tried changing the code to if ($('status_'+id).getText()==String("Active")) or even if (String($('status_'+id).getText())=="Active") and still no luck T_T... i've also checked $('status_'+id).getText() throu...

How do I track and debug JavaScript memory leaks in Firefox?

I've been trying to track this one for literally a month now without any success. I have this piece of code on an car advertising website which basically allows thumbnails to rotate in search results given that a car has multiple pictures. You can see it in action at the following: http://www.abcavendre.com/4506691919/ It is built ...

How do I add ajax calls to Mootools class

I have modified (very slightly) the Mootools class noobSlide (http://www.efectorelativo.net/laboratory/noobSlide/) to create a flickr style photostream. Here is the modified html (note you can see the original on the above page) print("code sample");<h2>Sample 2</h2> <div class="sample"> <div class="mask4"> <div id="box2"> <span><im...

Page sliding on a desktop webapp similar to iPhone webapps

I've looked at ciui and really liked the way that certain links will slide out the existing content and load new content into the DOM, or slide back. Is there a way to quickly create a work-a-like with the additional animation support in jQuery, scriptaculous, or MooTools? ...

Convert jquery slide effect to mootools

I have a script that slides a div down from behind the menu, when people click on the tab. However its in jquery and I want to use mootools (lots of reasons I wont go into here). However im stuck with mootools 1.1 at present. But for some reason my attempt is not working :( The html print("code sample"); <div id="panel"> <form a...

Ajax replace text with image.

I have put together the following mootools script window.addEvent('domready', function() { var shouts = "timed.php"; var log = $('log_res'); function updateData (url,target) { new Ajax(url,{ method: 'get', update: $(target), onComplete: function() { log.removeClass('ajax-loading');} }).reques...

Javascript library for building desktop-like web application: ExtJS, jQuery, YahooUI, Mocha, SproutCore, Cappuccino, others?

I am evaluating several Javascript UI toolkits for building web applications that have a desktop-like feel, mainly because of dialogs and window management. I looked at several options - here are my evaluations so far: ExtJS - Great widget library, great docs! Not so great license. jQuery UI - Lack of ready-made window and dialog cont...

How good is Mootools backward compatibility?

A coworker of mine has had issue with Mootools being backward compatible and I was wondering if anyone else had noticed this? He said that his main problem was when trying to using the drag and drop functionality offered in an older version. I never really looked into it myself, but when I mentioned it when asking the same question for ...

JS - Advice on how to merge multiple user input to one form field design

I have a page that allows users to enter a lot of information about them (metadata) they can then click on a icon which opens a modal window containing a googlemap which allows them to add locations, and a title for that location. Using mootools I can pass the value of a form field back to the original form, using onclose. The main page...

How can I add column resizing to a MooTools sortable table?

I want a table similar to this one, but where the user can adjust the height of the table as well as sort it. How can I do this? ...

Is there a way to create a fullscreen gallery on iPhone through Safari?

I've been creating CSS/Javascript to style an upcoming site differently on iPhone - mostly to enhance usability. On the desktop app, I use slimbox in combination with mootools for an image gallery. This doesn't work on iPhone because it won't show the image fullscreen (safari chrome gets in the way). The solution I have at the moment is ...