I need a corss browser compatible solution.
Main Topics
Browse All TopicsHello!
This is a fairly straight forward question. I need a way to generate a UUID in javascript that is guarenteed to be unique from the instantiation of the script until it's end. It will need to generate multiple UUIDs as well. Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Do you need to generate UUID's according to the standards?
http://en.wikipedia.org/wi
Or do you just need unique random numbers? Do these numbers need to be a certain length? It is certainly possible to create unique random numbers in Javascript as found here:
http://javascript.internet
You would just need to create a number in the range of values that corresponds to a 32 hexadeciaml number and then convert it to the notation you want.
You might check out this solution to see if it suits your needs.
http://www.af-design.com/r
No JavaScript solution will ever be a true UUID so long as the browsers sandbox doesn't provide access to low level devices (to fetch MAC address of the NIC etc) but this is a best effort to match as much of the standard as possible in a JavaScript class.
Business Accounts
Answer for Membership
by: mshogrenPosted on 2006-05-25 at 08:16:05ID: 16761477
Check this out. It only works in IE on Windows
roup/ micro soft.publi c.scriptin g.jscript/ browse_frm /thread/ c6 7f4dd28f0d 14f/331003 d3ee188cd8 ?lnk=st& q= allintitle %3Ajavascr ipt+guid&r num=3&hl=e n#331003d3 ee188cd8
http://groups.google.com/g