Re: Adding to Cart

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58752
interpreted = N
texte = Jesse Proudman wrote: > Create multiple unique ids on a page. The rest of the system uses > [cart] tags as ID values so if I try to do a normal [search]+1[/search] > it gives me the same problem. If you don't mind the unique ids being related, just append a string to the end of the [cart] value. The problem is that, as you have discovered, the [cart] generates a string of digits too large to represent as a number except with scientific notation. NOTE: you should not just use [random] to create your unique portion of the id, since technically speaking [random] numbers could include a finite sequence of the same number. If you have a fixed number of unique ids which you need to create, you could try something like this: [text show=f]id1=[cart]-1[/text] [text show=f]id2=[cart]-2[/text] [text show=f]id3=[cart]-3[/text] [text show=f]id4=[cart]-4[/text] ... (you should use some sort of delimiter between the [cart] and the sequence, so there is some visual clue that something is going on). In fact, you could have a [math] value which you use as a sequence number and increment after every new id based on the [cart]. But the important thing to note is that the id must be a text variable, not a math variable. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding to Cart ( John Peacock 2004)
  2. Re: Adding to Cart ( Jesse Proudman 2004)
  3. Re: Adding to Cart ( John Peacock 2004)
  4. Re: Adding to Cart ( Stuart Tremain 2004)
  5. Adding to Cart ( Jesse Proudman 2004)
  6. Re: Reload adding to cart (Donovan Brooke 2001)
  7. Re: Reload adding to cart (Maurice Rickard 2001)
  8. Re: Reload adding to cart (Donovan Brooke 2001)
  9. Re: Reload adding to cart (John Peacock 2001)
  10. Re: Reload adding to cart (Donovan Brooke 2001)
  11. Re: Reload adding to cart (Donovan Brooke 2001)
  12. Re: Reload adding to cart (John Peacock 2001)
  13. Re: Reload adding to cart (Donovan Brooke 2001)
  14. Re: Reload adding to cart (Donovan Brooke 2001)
  15. Re: Reload adding to cart (Maurice Rickard 2001)
  16. Reload adding to cart (Donovan Brooke 2001)
  17. Re: HELP..Changing Price after adding to cart. (Jym Duane 1999)
  18. Re: HELP..Changing Price after adding to cart. (John Butler 1999)
  19. Re: HELP..Changing Price after adding to cart. (Jym Duane 1999)
  20. Re: HELP..Changing Price after adding to cart. (Nitai 1999)
  21. Re: HELP..Changing Price after adding to cart. (Michael O Shea 1999)
  22. Re: HELP..Changing Price after adding to cart. (Charlie Romero 1999)
  23. HELP..Changing Price after adding to cart. (Jym Duane 1999)
Jesse Proudman wrote: > Create multiple unique ids on a page. The rest of the system uses > [cart] tags as ID values so if I try to do a normal [search]+1[/search] > it gives me the same problem. If you don't mind the unique ids being related, just append a string to the end of the [cart] value. The problem is that, as you have discovered, the [cart] generates a string of digits too large to represent as a number except with scientific notation. NOTE: you should not just use [random] to create your unique portion of the id, since technically speaking [random] numbers could include a finite sequence of the same number. If you have a fixed number of unique ids which you need to create, you could try something like this: [text show=f]id1=[cart]-1[/text] [text show=f]id2=[cart]-2[/text] [text show=f]id3=[cart]-3[/text] [text show=f]id4=[cart]-4[/text] ... (you should use some sort of delimiter between the [cart] and the sequence, so there is some visual clue that something is going on). In fact, you could have a [math] value which you use as a sequence number and increment after every new id based on the [cart]. But the important thing to note is that the id must be a text variable, not a math variable. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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://webdna.smithmicro.com/ John Peacock

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:

Country & Ship-to address & other fields ? (1997) Configuring E-mail (1997) Webcat/Webmerchant part II (1998) Can I invoke an ssi plugin from within a webcat page (1997) Claris HomePage messes up the code (1997) SearchTitle Question (1998) F3 crashing server (1997) [WebDNA] New WebDNA site (2008) Interfacing WC with mail server (1998) Kaaaaahhhhhhhnnnnnnn! (1997) [WebDNA] Hmmm ... (2008) Thread (1999) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [OT] PHP?MySQL Help Needed (2003) NT vs Mac (1997) The beginning (1997) WebDNA and Amazon S3 (2006) bye bye tax rate (1998) Bug in Mac webcatalog3_0_5b11 (1999) weight based shipping cost questions (1997)