JavaScript and ActionScript share a nearly identical syntax, object model, and even many object classes because both of them are based on the ECMA-262 (ECMAScript) standard. ActionScript implements the arguments object, which supports the callee and length properties, just like JavaScript. ActionScript also implements the Array, Boolean, Date, Math, Number, Object, and String classes familiar to JavaScript programmers.Adobe AIR allows ActionScript and JavaScript base object can be convert each other.But sometimes we still need to know which is javascript objct and which is actionscript object.The following code shows how to detect Javascript objct and ActionScript.
Archive for the ‘JavaScript’ Category
How To Discriminate Between JavaScript Object and ActionScript Object In AIR
May 18th, 2008 10+ Useful JavaScript Regular Expression Functions to improve your web applications efficiency
May 10th, 2008
In a previous post trim a string from white space by JavaScript function ( or Another JavaScript function for trim a string from white space ) and JavaScript function-Splits the string by given separator and returns an array with trimmed items, Some Regular expressions have been used. Regular expressions are very powerful tools for performing pattern matches.And validating user input is the bane of every software developer existence. But these patterns used in RegExp can be very simple.
(more…)
6 very basic but very useful JavaScript Number Format Functions for web developers
April 25th, 2008 How number is treated in JavaScript? JavaScript is loosely typed and the plus operator also concatenates, you can easily convert JavaScript Numbers to Strings similar to this: 1 + “”, but as we all know that JavaScript doesn’t have many built-in methods to format numbers. Most of the time we need to write our customized code to do it.The following is 6 very useful JavaScript number format function,why have to re-inventing the wheel? Don’t waste your valuable time to write it by yourself, only copy which you like and use it!
Of course if you had wrote your proudly number format function,don’t only stock in your hard disk( or your head), let’s share!
21+ beautiful Javascript and Ajax based solutions to our gallery requirements
April 8th, 2008
Maybe you are believe that a picture is worth a thousand words, so you need a powerful gallery in order to show your excellent pictures well. Or you need to add a gallery into your blog or homepage. Javascrip or AJAX technology is a better choice since they don’t need extend plugin.
4 ways to dynamically load external JavaScript(with source)
February 10th, 2008 Most of the time, Firefox, Safari and Opera work without much effort and differences between the 3. However, throw IE into the mix and you’re in a whole different world.This is helpful if you need to dynamically inject javascript.And, the biggest problem was setting a function that you want executed after the script is loaded.By this article I will provide 4 way to dynamically load external JavaScript.
The below 1,2,3 are asynchronous,only 4 is synchronization.
JavaScript function-Splits the string by given separator and returns an array with trimmed items
January 31st, 2008
This extension splits the string by given separator and returns an array with trimmed items. It uses the trim() extension at trim a string from white space by JavaScript function or Another JavaScript function for trim a string from white space.
Do you konw the JavaScript’s real name
January 28th, 2008
JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera.Virtually every personal computer in the world has at least one JavaScript interpreter installed on it and in active use. JavaScript’s popularity is due entirely to its role as the scripting language of the WWW . JavaScript is so popular,But…do you know the real name of JavaScript?
Another JavaScript function for trim a string from white space
January 23rd, 2008
Thanks Joules left a comment to let me konw that the language attribute for the script tag is deprecated (the article trim a string from white space by JavaScript function ).I wrote another javascript function for trim a string from white space at the front.(It will need some change for RTrim and Trim),I don’t konw there is faster way than below,if you know tell me pls.

Posted in
Tags: