Re: best way to get 2 unique strings on the same page load?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36307
interpreted = N
texte = Thanks for the thoughtsGlenn Busbin wrote:> John, > Of course, I've never tried this, but what would happen if you create the > first number when the page is first accessed, then run some delaying loop > that takes a couple of seconds to run, and then create the second number?how exactly? Two [cart]'s on the same page produce the same #.> If cart numbers are a function of date and time, that would seem to ensure > unique numbers...at least in theory. > > I guess you could also create a lotta cart numbers, store them in a > database, delete any duplicates, and then assign them for use as required. > That would ensure unique numbers, but looks like a lotta work, too.hmmm... Hopefully SM tells me [cart][random] is good enough ;-)> ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  2. Re: best way to get 2 unique strings on the same page load? (Mike Davis 2000)
  3. Re: best way to get 2 unique strings on the same page load? (Paul Fowler 2000)
  4. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  5. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  6. Re: best way to get 2 unique strings on the same page load? (Glenn Busbin 2000)
  7. Re: best way to get 2 unique strings on the same page load? (Will Starck 2000)
  8. best way to get 2 unique strings on the same page load? (John Butler 2000)
Thanks for the thoughtsGlenn Busbin wrote:> John, > Of course, I've never tried this, but what would happen if you create the > first number when the page is first accessed, then run some delaying loop > that takes a couple of seconds to run, and then create the second number?how exactly? Two [cart]'s on the same page produce the same #.> If cart numbers are a function of date and time, that would seem to ensure > unique numbers...at least in theory. > > I guess you could also create a lotta cart numbers, store them in a > database, delete any duplicates, and then assign them for use as required. > That would ensure unique numbers, but looks like a lotta work, too.hmmm... Hopefully SM tells me [cart][random] is good enough ;-)> ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Butler

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

PIXO Support (1997) two unique banners on one page (1997) Quantity * price (1997) AppleScript does not work properly ... (2000) WebDNA security (2004) trouble with [shownext] (2000) Is grep not working with umlauts? (2002) is 'template' a reserved webcat tag? (2000) taxTotal problem (1998) Updating fields from different platforms (1998) Make it Stop - EOM (2006) Initiating NewCart (1997) Re: (1998) Banner DNA (1997) Math Problem - Format? (1997) Sorting by date (1997) WebDNA Solutions ... (1997) ShipCost Data Base (1998) Emailer (1997) how to set a new cart number periodically (1999)