Re: [format] problems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34638
interpreted = N
texte = Let's go over the variable precedence issues again. If I have a database field called [format], how does that operate with the builtin function [format 20s]? Since we are having problems with exactly that symptom, I suggested to Jodi that she rewrite the page using the XML style tags.This would be another example of sloppy parsing; the other being [date] (the order header field) vs the function [date format=%m/%d/%Y]. If the parser does not check for the closing ] and jumps immediately to the field rather than the function, this would explain the behavior we are seeing with [format]. I had asked this to be fixed a while ago, but it still seems bad.John Peacockjburgess@rowmanlittlefield.com wrote: > > we're running WC 4.0 for Window NT. > > We have a sendmail text that includes lineitem details with the following > formatting: > > [lineItems] > [format 20s][textB][/format] [format 40s][textA][/format] [format > 3.0f][quantity][/format] [format 10.2f][price][/format] > [/lineItems] > > This is how the text is out-put: > > [first line item] > > C20s]0-8476-9719-3Error: Error: expected [/LINEITEMS], but found [/format] > instead[/format] C40s]The Essential Civil Society ReaderError: Error: expected > [/LINEITEMS], but found [/format] instead[/format] C3.0f]1Error: Error: expected > [/LINEITEMS], but found [/format] instead[/format] C10.2f]22.95Error: Error: > expected [/LINEITEMS], but found [/format] instead[/format] > > [second line item, no textB] > 15% Discount 1 -3.44 > > I took out all of the formatting for now on our site, so it won't break, but it > looks horrible. Any suggestions? Any ideas why it's breaking on the first > line-item and not the second? Any help is welcome. > > -Jodi (having a bad case of forest for trees syndrome) > > - * - * - * - * - * - * - * - * - * - > Jodi M. Burgess > RLPG, Lanham MD > Web & Systems Coordinator > e-mail jburgess@rowman.com > http://www.rowman.com > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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: [format] problems (John Peacock 2000)
  2. Re[2]: Re[2]: [format] problems (jburgess@rowmanlittlefield.com 2000)
  3. Re: Re[2]: [format] problems (Peter Werno 2000)
  4. Re[2]: [format] problems (jburgess@rowmanlittlefield.com 2000)
  5. Re: [format] problems (jburgess@rowmanlittlefield.com 2000)
  6. Re: [format] problems (Peter Werno 2000)
  7. [format] problems (Rob Marquardt 1998)
Let's go over the variable precedence issues again. If I have a database field called [format], how does that operate with the builtin function [format 20s]? Since we are having problems with exactly that symptom, I suggested to Jodi that she rewrite the page using the XML style tags.This would be another example of sloppy parsing; the other being [date] (the order header field) vs the function [date format=%m/%d/%Y]. If the parser does not check for the closing ] and jumps immediately to the field rather than the function, this would explain the behavior we are seeing with [format]. I had asked this to be fixed a while ago, but it still seems bad.John Peacockjburgess@rowmanlittlefield.com wrote: > > we're running WC 4.0 for Window NT. > > We have a sendmail text that includes lineitem details with the following > formatting: > > [lineitems] > [format 20s][textB][/format] [format 40s][textA][/format] [format > 3.0f][quantity][/format] [format 10.2f][price][/format] > [/lineItems] > > This is how the text is out-put: > > [first line item] > > C20s]0-8476-9719-3Error: Error: expected [/LINEITEMS], but found [/format] > instead[/format] C40s]The Essential Civil Society ReaderError: Error: expected > [/LINEITEMS], but found [/format] instead[/format] C3.0f]1Error: Error: expected > [/LINEITEMS], but found [/format] instead[/format] C10.2f]22.95Error: Error: > expected [/LINEITEMS], but found [/format] instead[/format] > > [second line item, no textB] > 15% Discount 1 -3.44 > > I took out all of the formatting for now on our site, so it won't break, but it > looks horrible. Any suggestions? Any ideas why it's breaking on the first > line-item and not the second? Any help is welcome. > > -Jodi (having a bad case of forest for trees syndrome) > > - * - * - * - * - * - * - * - * - * - > Jodi M. Burgess > RLPG, Lanham MD > Web & Systems Coordinator > e-mail jburgess@rowman.com > http://www.rowman.com > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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 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:

Multiple fields on 1 input (1997) Extended [ConvertChars] (1997) [WebDNA] Best practice re: password storage (2013) best way to test for the existence of a parameter in a url (2003) Newbie problem blah blah blah (1997) Sorting Orders (1997) No data - More Info (1997) Setting up WebCatalog with Retail Pro data (1996) WebMerchant Config problems (2000) Adding content advice needed (1998) many-to-one problem (1998) [SendMail] from a form? (1998) Installing WebCat under Linux Q (2000) Nested tags count question (1997) Converting a Magazine to a Web Site with WebCat (1999) [TaxableTotal] - not working with AOL and IE (1997) PCS Frames (1997) Price recalc based on quantity (1997) setting username and password using a form. (2000) shipcost - cleaner with a table (1998)