Javascript Array shuffle in-place





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

« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »
8
Date Submitted Thu. Mar. 8th, 2007 11:37 PM
Revision 1
Scripter Fordiman
Tags ajax | browser-independent | JavaScript | Library | XML
Comments 0 comments
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:

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.
6
Date Submitted Wed. Mar. 7th, 2007 3:48 PM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 0 comments
Return object by type. Revision 2.
-3
Date Submitted Wed. Mar. 7th, 2007 9:49 AM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 4 comments
Return object by type
2
Date Submitted Wed. Mar. 7th, 2007 8:57 AM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 1 comments
Remove all children of Object.
8
Date Submitted Tue. Mar. 6th, 2007 7:26 PM
Revision 1
Helper albud
Tags JavaScript | String
Comments 1 comments
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
7
Date Submitted Sat. Mar. 3rd, 2007 5:55 AM
Revision 1
Scripter shachi
Tags foreach | JavaScript
Comments 4 comments
Just a small snippet I discovered when I was tired writing somearrayname\[i\] I thought there was something like foreach in javascript but couldn't find any so why not make one?
For those foreach(){...} lovers.

Hope it makes your life easier.
14
Date Submitted Thu. Mar. 1st, 2007 2:09 PM
Revision 1
Helper ushi
Tags ajax | Chat | JavaScript | PHP
Comments 3 comments
Simple chatting script to be placed on a corner of a website
Also a good example how to use ajax.
10
Date Submitted Wed. Feb. 28th, 2007 3:35 PM
Revision 1
Helper mjlintz
Tags JavaScript
Comments 2 comments
Highlight table row on rollover.
9
Date Submitted Fri. Feb. 23rd, 2007 1:16 AM
Revision 1
Scripter Casper42
Tags CSS | JavaScript
Comments 2 comments
There seems to be so many hide/show scripts out there, so here's the functions I wrote and use on a regular basis - there are 7 functions, hide, show and toggle by id or class - and the getElementByClass function that does not exist as a built in Javascript function...

This is in response to the flurry of visibility scripts that just don't have all the pieces needed to make them totally useful.
8
Date Submitted Wed. Feb. 21st, 2007 8:53 AM
Revision 1
Beginner mikedowson
Tags CSS | JavaScript
Comments 2 comments
An easy way to hide and show div's using Javascript and CSS.

Basically just a slight variation on this script by Real Gagnon.
« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »