I have built quite a comprehensive form builder without the need for a UUID.

I am presuming you are storing these fields in a database, so you just make
sure you use IDENTITY, and each field is unique.

My form builder works thus.

You select the type of form element you want to create (textarea, input,
checkbox etc), give it a name, specify all the other parameters such as
size, maxlength, javascript events etc.
Then save it. All these details are saved in the database, and are always
unique as the primarykey sets the field number.
When you come to display your generated form fields, you then simply prepend
the currentROW to the field_name to make sure it is unique.

E.g.

<cfoutput query="formfields">

<cfif fieldtype="textarea">
<textarea name="#currentRow#_fieldname">#default_value#</textarea>
</cfif>
</cfoutput>

Easy.

Russ Michaels
Macromedia/Allaire Certified ColdFusion Developer
 
CFDeveloper
The free resource and community for ColdFusion developer.
http://www.cfdeveloper.co.uk

Join the CFDeveloper discussion lists.
To subscribe send an e-mail to [EMAIL PROTECTED]

 

> -----Original Message-----
> From: Aidan Whitehall [mailto:[EMAIL PROTECTED] 
> Sent: 15 June 2004 15:04
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] OT: JavaScript createUuid() ?
> 
> > 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]

Reply via email to