Our own Michael Mahemoff is at it again, creating a simple little GUID generator called Guid0:
Guid0 is a GUID library for Javascript. Okay, it doesn’t yet do official, bona fide, 128-bit, GUIDs yet, mainly for API design reasons. But this is a library you might find useful if you want to generate a unique ID in your Ajax app.
JAVASCRIPT:
 // simple guid = new Guid(); var newguid = guid.generate();  // options guid = new Guid(  {     chars: Guid.constants.base85, // or you could say "abc" if you only wanted those chars to appear     epoch: “June 1, 2003″,     counterSequenceLength: 2, // a counter field appended to the end     randomSequenceLength: 2 // a random field appended to the end  } ); ÂHe is working on 128-bit support.
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment