NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Focus on JavaScript
12829 Focus on JavaScript http://javascript.about.com/library/tools/bldocwriter.htm In the eighth tutorial in the "Learning Javascript" series we look at how we can pass parameters to functions to allow the same function to accept different inputs each time it is called. JavaScript > Scripts and Programs > Development Oct 12, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Focus on JavaScript:


Other links at JavaScript > Scripts and Programs > Development
There are a lot of libraries out there and, invariably, they do a lot of things that you don't need or in a manner that you don't like. Thus, they feel bloated. One example would be Prototype. Recently, I discovered it has a Template class. At first, I thought it was a template engine similar to Smarty for PHP, but it turned out I was wrong. It's just a method of returning formatted strings wrapped in a fancy class. If you're familiar with C, C++, Objective C, Perl, Python, PHP, bash, awk, etc. you're probably aware of the printf function, used to output formatted strings. Because I wanted for a long time a similar function in JavaScript, I wrote it using PHP's sprintf spec.. It's prototype is simple:
Category:

These function return a string with whitespace stripped (trimmed) from the beginning or end or both of the string. Without the second parameter, they will trim these characters:

" " (ASCII 32 (0x20)), an ordinary space.
"\t" (ASCII 9 (0x09)), a tab.
"\n" (ASCII 10 (0x0A)), a new line (line feed).
"\r" (ASCII 13 (0x0D)), a carriage return.
"\0" (ASCII 0 (0x00)), the NUL-byte.
"\x0B" (ASCII 11 (0x0B)), a vertical tab.
Category:

UTF-8 (8-bit Unicode Transformation Format) is a variable-length character encoding for Unicode. It is able to represent any universal character in the Unicode standard, yet is backwards compatible with ASCII.

This script is used to encode / decode UTF-8 data using javascript.
Category:

How often have you needed to know the exact screen coordinates of an element inside a web page? For example, to place a layer below a table cell in a combo box fashion?
Category:

ZIPCodeWorld.com offers complete and affordable United States ZIP Codes database, Canadian Postal Codes database and Mexican Postal Codes database with latitude and longitude coordinates, region and country names as well as other important information. We also provide United States ZIP Code map by county and city in PDF digital format.
Fortunes 500 companies have been using our zip code and postal codes database in everyday business. Integrating zipcodes geographical information into the business process is a key to unlock your business success.
Category:




Main Category
192
2037
816
286
175
1802
1222
911
1163
7478
70
907
59
2222
174

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19493
Categories: 1275
Registered Users: 748
Mailing List Subscribers: 2046
Unique Outgoing Hits: 227575

Pagerank Statistics
PR 10
1 site(s)
PR 9
13 site(s)
PR 8
32 site(s)
PR 7
256 site(s)
PR 6
778 site(s)
PR 5
1900 site(s)

PHP News