Archive for the ‘JavaScript’ Category

Vista Web Photo Gallery– A Very Useful Photo Album Builder Based On Ajax

Man-Brown-256x256 With the mutural of WordPress, Drupal, more and more people could create their own homepage or blog to record and share their life with others easily. Of course the photo album is also the important part of it. By use of Flex we could create very cool photo album but not everyone is programmer, even if the programmer is not exactly the flex programmer… In previouse article 21+ beautiful Javascript and Ajax based solutions to our gallery requirements, we have selected 21 JavaScript/Ajax gallery but most of them are solutions not applictaions. In other words most of them is oriented to the developer or at least the people who have program ability. We could add gallery function in our own website through making small modification of it.

(more…)

How To Discriminate Between JavaScript Object and ActionScript Object In AIR

chart-accept-128x128JavaScript 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.

(more…)

10+ Useful JavaScript Regular Expression Functions to improve your web applications efficiency

globe-Vista-256x256In 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

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!

(more…)

21+ beautiful Javascript and Ajax based solutions to our gallery requirements

Team-Photo-128x128Maybe 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.

(more…)

4 ways to dynamically load external JavaScript(with source)

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.

(more…)

JavaScript function-Splits the string by given separator and returns an array with trimmed items

pterodactyl-48x48 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.

(more…)

Do you konw the JavaScript’s real name

Blue-Toy-48x48 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?

(more…)