background preloader

Ajax

Facebook Twitter

PlayFramework recipe: Reusable ajax Tags. HaveLet’s say it: Play! And Rails do have similarities. One thing I always liked of my Rails friends where the ajax tags. So I port them (or some of them) in Play! Here the svn url to check out the Play! Module. All these tags are based on JQuery Link opens a remote url in a page div with a fancy fade out - fade in effect and has the following parameters: update: the id of the div to be updatedurl: the remote url to be called. can be a reverse such as @Controller.action(params…)Select the everyone favorite!

Have Fun! The DWR Library - Map Javascript to Java Objects - TechnoLog. Jawr: Jawr - More than a Javascript/CSS compressor. Transparent Message. Ten Javascript Tools Everyone Should Have. Filed: Sun, Mar 04 2007 under Programming|| Tags: toolbox javascript popular list Javascript frameworks have exploded on the scene over the last few years but they're no replacement for a good toolbox: those little snippets of code you seem to include in every single project. Here's my list of 10 essential Javascript tools everyone should have at their fingertips! #0 - Trim. Trim is one of the things that leave you scratching your head wondering why it was never included in the language to begin with. String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } String.prototype.ltrim = function() { return this.replace(/^\s+/g,""); } String.prototype.rtrim = function() { return this.replace(/\s+$/g,""); } Usage… var test = " Test "; var test1 = test.ltrim(); // returns "Test " var test2 = test.rtrim(); // returns " Test" var test3 = test.trim(); // returns "Test" #1 - Numeric Sort.

Javascript's Array object has a sort() method, and a pretty quick and fast one at that. Todoist. COWS Ajax. AjaxTags: Home. Web Toolkit - Build AJAX apps in the Java language. Welcome to ajaxWrite. Edit-in-Place with Ajax. Back on day one we looked at using the Prototype library to take all the hard work out of making a simple Ajax call. While that was fun and all, it didn’t go that far towards implementing something really practical. We dipped our toes in, but haven’t learned to swim yet. So here is swimming lesson number one. Anyone who’s used Flickr to publish their photos will be familiar with the edit-in-place system used for quickly amending titles and descriptions on photographs. Prototype includes all sorts of useful methods to help reproduce something like this for our own projects.

Getting Started There are two major components to this process; the user interface manipulation and the Ajax call itself. <! So that’s our page. Events and Highlighting The first step is to offer feedback to the user that the item is editable. With this in mind, here’s how editinplace.js starts: The first line attaches an onLoad event to the window, so that the function init() gets called once the page has loaded. Tudu Lists - Tudu Lists.