Enhance External Links





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

11
Date Submitted Thu. Aug. 10th, 2006 2:25 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
when an javascript error is occured , instead of showing the default error message by the system, we can show the our own cusom error message like this.
11
Date Submitted Thu. Aug. 10th, 2006 2:32 AM
Revision 1
Syntax Master sundaramkumar
Tags HTML | JavaScript
Comments 1 comments
Restrict input to alphanumeric and uppercase
11
Date Submitted Thu. Aug. 10th, 2006 2:38 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
Find and replace a string or character(s) inside another string
11
Date Submitted Mon. Aug. 21st, 2006 9:44 PM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 3 comments
check if your browser/javascript supports Ajax.
For this we can use prototype's getTransport method.
12
Date Submitted Wed. Nov. 15th, 2006 7:29 AM
Revision 1
Scripter Casper42
Tags JavaScript
Comments 2 comments
I found this to be a neat little trick for hiding(somewhat) source javacscript code from peering eyes...

This function will unload all linked javascript files so that when you view source - you see no javascript files! (Especially helpful when using FF and using web-developer tools - no linked js files are displayed) The files remain resident in memory - allowing for the functions to work.

Just call the function in the tag
12
Date Submitted Tue. Oct. 3rd, 2006 5:51 AM
Revision 1
Helper Thomas
Tags Email | JavaScript | spam
Comments 1 comments
Here's a simple JavaScript solution to hide your e-mail from many spam scripts while still providing clickable hyperlinks to your visitors.

Web crawlers and visitors with JavaScript disabled will see: me [at] mydomain [dot] com. I've seen a lot of people that just leave it at this, but it seems a bit unprofessional in my opinion. With the following code, we can replace that with a fully functional hyperlink.
12
Date Submitted Thu. Jul. 20th, 2006 11:57 AM
Revision 1
Beginner toddersbud
Tags cascade | CSS | firefox | HTML | JavaScript | Styles
Comments 0 comments
This shows how the computed style of each node differs from the computed style of its parent. The root element, which has no parent, is instead compared against the root of a blank HTML document.

* create a new bookmark called "compute styles" in your firefox toolbar. Place the snippet code in the location field of your "compute styles". click the compute styles bookmark, then click an element on the page with the crosshairs.
12
Date Submitted Fri. Jul. 28th, 2006 5:48 AM
Revision 1
Beginner delook
Tags google | JavaScript | map
Comments 0 comments
A simple demo of the google maps API
12
Date Submitted Tue. Sep. 12th, 2006 1:34 AM
Revision 1
Beginner Headzoo
Tags Array | JavaScript | PHP
Comments 3 comments
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.
12
Date Submitted Mon. Oct. 2nd, 2006 11:59 AM
Revision 1
Beginner drench
Tags escape | HTML | JavaScript | String
Comments 0 comments
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.