Code Question

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38373
interpreted = N
texte = Is there any reason why placing this code at the top of a page (It all works correctly) and then replacing all [carts] in the page with [ncart] would render certain functions on the page useless (the calculation of the grand total using some custom math code that I didn't write and don't quite understand)? I would post the code of the whole page but it's 50k and I don't quite understand it all and I don't think any of you would either. There are no command variables being posted to this page and the only major change I made was removing at a showcart command WAS being posted to page, inserting this code, and wrapping the rest of a page in an [orderfile cart=[ncart]]. I'm thoroughly stumped...[!] Define New Cart Number [/!] [text show=f]ncart=[date format=%Y-%m][include file=FG-WriteInHere/FG-CartID.txt][/text] [math show=f]uper=[include file=FG-WriteInHere/FG-CartID.txt]+1[/math] [deletefile file=FG-WriteInHere/FG-CartID.txt] [writefile file=FG-WriteInHere/FG-CartID.txt&secure=f][uper][/writefile] [movefile from=ShoppingCarts/[cart]&to=ShoppingCarts/[ncart]] I will be gone for 3 days and be back on Friday but if any one has any suggestions while I'm gone, I'm open. I've spent 3 hours on this tonight when it should have taken 30 minutes. This code works fine on other sites.-jesse ------------------------------------------------------------- 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: StoreBuilder UPS/XML code question ... (Kenneth Grome 2003)
  2. Re: StoreBuilder UPS/XML code question ... (Glenn Busbin 2003)
  3. Re: StoreBuilder UPS/XML code question ... (Alain Russell 2003)
  4. Re: StoreBuilder UPS/XML code question ... (Bob Minor 2003)
  5. Re: StoreBuilder UPS/XML code question ... (Kenneth Grome 2003)
  6. Re: StoreBuilder UPS/XML code question ... (Kenneth Grome 2003)
  7. Re: StoreBuilder UPS/XML code question ... (Kenneth Grome 2003)
  8. StoreBuilder UPS/XML code question ... (Kenneth Grome 2003)
  9. Code Question (Jesse Proudman (Lists Account) 2001)
Is there any reason why placing this code at the top of a page (It all works correctly) and then replacing all [carts] in the page with [ncart] would render certain functions on the page useless (the calculation of the grand total using some custom math code that I didn't write and don't quite understand)? I would post the code of the whole page but it's 50k and I don't quite understand it all and I don't think any of you would either. There are no command variables being posted to this page and the only major change I made was removing at a showcart command WAS being posted to page, inserting this code, and wrapping the rest of a page in an [orderfile cart=[ncart]]. I'm thoroughly stumped...[!] Define New Cart Number [/!] [text show=f]ncart=[date format=%Y-%m][include file=FG-WriteInHere/FG-CartID.txt][/text] [math show=f]uper=[include file=FG-WriteInHere/FG-CartID.txt]+1[/math] [deletefile file=FG-WriteInHere/FG-CartID.txt] [writefile file=FG-WriteInHere/FG-CartID.txt&secure=f][uper][/writefile] [movefile from=ShoppingCarts/[cart]&to=ShoppingCarts/[ncart]] I will be gone for 3 days and be back on Friday but if any one has any suggestions while I'm gone, I'm open. I've spent 3 hours on this tonight when it should have taken 30 minutes. This code works fine on other sites.-jesse ------------------------------------------------------------- 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/ Jesse Proudman (Lists Account)

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:

ShowNext Anomaly (1998) Running 2 two WebCatalog.acgi's (1996) Re:2nd WebCatalog2 Feature Request (1996) Bad Cookie / Internet Option / Internet Explorer (2004) [WebDNA] Yikes, upgraded to OS Mavericks and now WebDNA not running (2013) Pithy questions on webcommerce & siteedit (1997) Commas in search (1998) WC2.0 Memory Requirements (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Retirement (2000) WebCatalog stalls (1998) OT: Backup Strategies (2007) Netscape Communicator 4 chops off URLs (was No Data) (1997) generator prob (2001) Filemaker Pro & Webcatalog (1999) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Updating a database once per day - An example (1998) Encrypt (2000) [date format] w/in sendmail (1997) Re:Emailer and encryption (1997)