Archive for the ‘Javascript’ Category
Monday, June 23rd, 2008 |
As I mentioned before in How to Include Subject, CC, BCC, and Email Body in Email Links, you are creating a risk to get spam if you simply placing email addresses on a page without encoding them.
Some websites using “[at]” to replace “@” and email will look as “name [at] domain.com”. This is a good idea for personal websites since nobody challenge you. In commercial, many clients wouldn’t allow you to use “name [at] domain.com” this format. They are not web designer and they don’t understand how spam prevention works, or even care for that matter.
I have this method originally from david walsh blog. Its author have a quick PHP script that you can use when putting raw email addresses on a page:
(more…)
Popularity: 20% [?]
Posted in Javascript, PHP, Web Tools | 1 Comment »
Friday, February 1st, 2008 |
Much to the chagrin of Web designers everywhere, the HTML 4.0 Strict and XHTML 1.0 Strict recommendations of the W3C no longer include the target attribute of the tag. The Transitional versions of the specifications still include it, but by definition, these specs are on the way out.
Whatever your personal feelings on the practice, the most common application for this attribute — opening a link in a new browser window with target=”_blank” — is still useful on today’s Internet. So if the standards say we shouldn’t use it, how should we go about creating new-window links, while following the latest Web standards?
You can read the original articles from here: http://www.sitepoint.com/article/standards-compliant-world/
The Complete Script
Here is the complete script. Notice the last line, which assigns the externalLinks function to the window’s onload event handler. This triggers the function when the document has finished loading.
(more…)
Popularity: 9% [?]
Posted in Javascript | No Comments »
Sunday, December 23rd, 2007 |
If you are still wondering which javascript library (Prototype, MooTools, JQuery) to use, you can run the speed/validity selectors test for frameworks from Slickspeed.

http://mootools.net/slickspeed/
Every framework runs in its own iFrame, thus no conflicts can happen. Tests are run selector by selector, with an interval to prevent the browser from freeezing.
Tests are run in a neutral environment, no library or framework is included in the main javascript test, to avoid favoritism.
Popularity: 10% [?]
Posted in Javascript | 1 Comment »