Hi everyone. Here's my attempt:
use strict;
/*!
* JavaScript UUID Generator, v0.0.1
*
* Copyright (c) 2009 Massimo Lombardo.
* Dual licensed under the MIT and the GNU GPL licenses.
*/
function UUID() {
var uuid = (function () {
var i,
c =
What do you recommend to generate UUID with jQuery ?
Thank you !
I've been using something like this:
function uid() {
var result='';
for(var i=0; i32; i++)
result += Math.floor(Math.random()*16).toString(16).toUpperCase
();
return result
}
thank you very much!
On 2009-3-6, at 上午10:48, Mike Alsup wrote:
What do you recommend to generate UUID with jQuery ?
Thank you !
I've been using something like this:
function uid() {
var result='';
for(var i=0; i32; i++)
result +=
I've been using the data method for this, you need to pass a DOM
element though:
var uuid = $.data(el);
--Klaus
On 6 Mrz., 03:48, Mike Alsup mal...@gmail.com wrote:
What do you recommend to generate UUID with jQuery ?
Thank you !
I've been using something like this:
There's not really a 'recommended way' to generate a UUID with jQuery;
that's not what it's about. If you want an actual UUID that conforms*
to the standard (8-4-4-4-12) then you can use this:
http://af-design.com/services/javascript/uuid/uuid.js
*given the limitations of JavaScript
On Mar 5,
5 matches
Mail list logo