background preloader

Code

Facebook Twitter

Opensource

FlashTools. Actionscript Classes » Bitmap. 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.

Ten Javascript Tools Everyone Should Have

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. Thanks to prototyping however it's fairly easy to make up for the original oversight. 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.

Photoshop Tutorials and Flash Tutorials. Wire-man.com. Portfolio. Sunday, July 25th, 2004 at 3:27 pm Version 0.2 is ready to hit the market. Following are the improvements that have been made: The weaving process is 10 times faster. The overall structure has been improved. You can easily extend the framework with custom Aspects, Advices, Pointcuts and JoinPoints. The weaving algorithm has been sourced out into a Weaver.

It is possible to directly weave into an object without affecting the underlying class. Advices do not have to be classes anymore, a method and some further information is all you need (example below). To show you the differences we are going to compare the Version 0.1 Example with the following example, that does exactly the same.

Our basis is again the class Account . Advanced ActionScript 3.0 with Design Patterns. Ajax (programming) Ajax is not a single technology, but a group of technologies.

Ajax (programming)

HTML and CSS can be used in combination to mark up and style information. The DOM is accessed with JavaScript to dynamically display, and allow the user to interact with, the information presented. JavaScript and the XMLHttpRequest object provide a method for exchanging data asynchronously between browser and server to avoid full page reloads. In 1996, the iframe tag was introduced by Internet Explorer to load or to fetch content asynchronously. In 1998, Microsoft Outlook Web App team implemented the first component XMLHTTP by client script. Google made a wide deployment of standards-compliant, cross browser Ajax with Gmail (2004) and Google Maps (2005).[6] The term "Ajax" was publicly stated on 18 February 2005 by Jesse James Garrett in an article titled "Ajax: A New Approach to Web Applications", based on techniques used on Google pages.[1] get-ajax-data.js: send-ajax-data.php:

Tutorials. The Flash Blog. GotoAndLearn.com.