Solved

Create UUID on form field

Posted on 2009-05-13
1
412 Views
Last Modified: 2012-05-06
I am trying to assign a UUID to a form field using javascript.  Currently I have the field creating a uuid dynamically using coldfusion Createuuid function.  My issue is that I am using spry and ajax to submit to my db the records, when I elect to create a new record I am clearing out the fields and begining a new record, however my uuid field gets cleared out with out generating a new uuid for the new record.  I would like a method in which when new record is selected and the fields are cleared that the uuid field would create and display a new uuid for the record currently being created.  Any suggestions?
0
Comment
Question by:jriver12
1 Comment
 
LVL 27

Accepted Solution

by:
azadisaryev earned 500 total points
ID: 24381549
why do you need to create a uuid and show it in a form field when you are creating a new record? just create a uuid in your INSERT query. i really do not see any reason to create a uuid BEFORE a new record is being inserted...

Azadi
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now