Solved

Create UUID on form field

Posted on 2009-05-13
1
413 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now