page chokes on hideif when false and ignored

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17596
interpreted = N
texte = I'm baffled by a piece of code that works fine when it is supposed to be evaluated (ie [paymethod]!AC ), but when it is supposed to be hidden, the page stops (ie no code HTML, WebCat, etc. further down on page gets evaluated or displayed).Why would a piece of code that is supposed to be ignored cause a problem and it work fine when evaluated? Hopefully it is just a typo, but I'm blind to it right now. [hideif [paymethod]=AC] [math show=f]feeadded=0[/math] [lineitems][showif [sku]=ccfax][math show=f]feeadded=1+feeadded[/math][/showif][/lineitems] [showif [math]feeadded[/math]>0] [returnraw]HTTP/1.0 302 Found Location: verify.tmpl$remove?cart=[cart]&db=db/inventory.db&sku=ccfax&shipchoice=[Shi pchoice]&area=[area]&shipcountry=[country]&cardtype=[url][cardtype][/url]&p aymethod=[paymethod]&shipaddress=[shipaddress][/returnraw] [/showif] [/hideif] (an explanation of the code:If a person doesn't want to put their CC# over the internet, we are giving them the option to fax, mail in the information with an additional handling fee. This code removes the additional fee from the line items if they change their mind to put the CC # is over the net after all. )Thanks!Sandy Associated Messages, from the most recent to the oldest:

    
  1. Re: page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
  2. Re: page chokes on hideif when false and ignored (Michael Winston 1998)
  3. Re: page chokes on hideif when false and ignored (Gary Richter 1998)
  4. page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
  5. page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
I'm baffled by a piece of code that works fine when it is supposed to be evaluated (ie [paymethod]!AC ), but when it is supposed to be hidden, the page stops (ie no code HTML, WebCat, etc. further down on page gets evaluated or displayed).Why would a piece of code that is supposed to be ignored cause a problem and it work fine when evaluated? Hopefully it is just a typo, but I'm blind to it right now. [hideif [paymethod]=AC] [math show=f]feeadded=0[/math] [lineitems][showif [sku]=ccfax][math show=f]feeadded=1+feeadded[/math][/showif][/lineitems] [showif [math]feeadded[/math]>0] [returnraw]HTTP/1.0 302 Found Location: verify.tmpl$remove?cart=[cart]&db=db/inventory.db&sku=ccfax&shipchoice=[Shi pchoice]&area=[area]&shipcountry=[country]&cardtype=[url][cardtype][/url]&p aymethod=[paymethod]&shipaddress=[shipaddress][/returnraw] [/showif] [/hideif] (an explanation of the code:If a person doesn't want to put their CC# over the internet, we are giving them the option to fax, mail in the information with an additional handling fee. This code removes the additional fee from the line items if they change their mind to put the CC # is over the net after all. )Thanks!Sandy Sandra L. Pitner

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:

WebCatalog for guestbook ? (1997) [WebDNA] lighttpd problem with returnraw http header (2018) [lineitems] and [writefile] (1998) (OT) SERVER FREEZES ALL AT SAME TIME (2004) Nested tags count question (1997) Data Problem (2004) Passing Cart variable to subdirectory files? (1997) NT Woes (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Order not created error (1997) problems with 2 tags (1997) Proposed FormVariables hierarchy (2000) Cart sweeper (2000) WebDNA for Dummies (2004) transferring values (1998) [addlineitems] display (1997) Help name our technology! (1997) Title not showing up in ViewOrder template (1998) Help name our technology! (1997) OT: javascript help (2003)