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:
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.
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.
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?
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.
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.