String.addCharAt()
9
Find min and max of an array
8
This code is used in an Educational Portal product but can be tweaked to fit your need.
This code adds a small icon next to the title of a 'portlet' that resides on the page. By clicking the portlet title, the portlet usually maximizes within the constraint of the portal template - but the extra icon allows for the portlet to be opened in it's own window.
This simulates an MDI interface.
(REQUIRES PopItUp snippet)
This code adds a small icon next to the title of a 'portlet' that resides on the page. By clicking the portlet title, the portlet usually maximizes within the constraint of the portal template - but the extra icon allows for the portlet to be opened in it's own window.
This simulates an MDI interface.
(REQUIRES PopItUp snippet)
8
Fordiman
libNog is a 9k library to provide somewhat easier browser-independence. It is not yet complete, and will be continuously revised. It grew from this snippet, and is still growing as I find things I use often.
Presently, libNog features:
The above link will point you to the API documentation and history of libNog, as well as where to download the library.
Presently, libNog features:
A way to browser-independently get an XMLHttpRequest object.
A set of simple methods for GET, POST, HEAD, and to include other Scripts.
Simple methods for className control
A completely abstracted form of getElement*
Browser-independent methods for attaching and detaching event handlers
An event-normalization routine
A simple one-command 'Stop the Event' routine
And the big one: A simplified Class object by which classes can be built in JavaScript.
The above link will point you to the API documentation and history of libNog, as well as where to download the library.
8
Configurable number formatter.
8
svachon
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
8
This is a swear filter script I wrote for my xanga blog. I don't know if it has any application anywhere else. This will replace the swear words listed in the array with the character defined in blank_char. This isn't perfect but it works pretty well.
8
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
8
Strip HTML Tags From a String
8
An easy way to hide and show div's using Javascript and CSS.
Basically just a slight variation on this script by Real Gagnon.
Basically just a slight variation on this script by Real Gagnon.
8
You can search for "@" or something like mail information in your page source code. You'll find nothing.
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...









