could you just add a sequential number to the fieldnames?
failing that, I guess you could randomly generate a 35-character string,
and assume they'll be unique?
"Aidan Whitehall"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
nks.co.uk> cc:
Subject: RE: [ cf-dev ] OT:
JavaScript createUuid() ?
15/06/2004 15:04
Please respond to dev
> Why don't you dump a CreateUUID from coldfusion into a script?
I'm generating form elements on the fly on a page in JS, and I figured
the easiest way to find a unique name for each form field that's added
is to use a native JavaScript createUuid() or createGuid() function.
Thing is, I've searched high and low and can't find one and am finding
it hard to believe that it's neither something in core JS or that
no-ones every needed to do the same thing.
And please excuse me if I refrain from justifying future requests.
--
Aidan Whitehall [EMAIL PROTECTED]
Macromedia ColdFusion Developer
Fairbanks Environmental +44 (0)1695 51775
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]