Re: page chokes on hideif when false and ignored

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17598
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]a couple of ideas. Make sure there is no returns on that page location: from here on in the code there must not be a soft or hard return. If using bbedit then crank the right magin wide open. (can't remember the option to do this)second..and this might be a cure that fixed a problem I had...I am not 100% sure this is required. but when using the location even back onto my own server I had to put in the full url of the page...meaning if you page sat on my site it would be location: http://www.panavise.com/somedirectory/verify.tmpl...yadadadaif I removed the http://www.panavise.com it did not work. Again it might have been some other coding issue of mine that made it only work this way. Again a couple of ideas.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== 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]a couple of ideas. Make sure there is no returns on that page location: from here on in the code there must not be a soft or hard return. If using bbedit then crank the right magin wide open. (can't remember the option to do this)second..and this might be a cure that fixed a problem I had...I am not 100% sure this is required. but when using the location even back onto my own server I had to put in the full url of the page...meaning if you page sat on my site it would be location: http://www.panavise.com/somedirectory/verify.tmpl...yadadadaif I removed the http://www.panavise.com it did not work. Again it might have been some other coding issue of mine that made it only work this way. Again a couple of ideas.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Gary Richter

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 Pulldowns (1997) en/decrypt problem (1999) WebCat2: Items xx to xx shown, etc. (1997) Error Lob.db records error message not name (1997) [Sum] function? (1997) Include from DB (2002) How to add product size choices to form? (1997) Using [showif] within [lineitems] (2000) Serial Number Question (1997) If search results are blank... (2003) Running on Empty (1999) PCS Frames (1997) Image Upload? (2002) Buying sans cart (1997) Emailer Set Up (1997) [WebDNA] WebDNA 8.2 and BioType (2016) [date] problem with %d%m%Y (1998) PARAMETER vs. OPERATOR (was The BUG is BACK ...) (1998) Norton Internet Security filtering out WebDNA processsed (2004) Help--WebCat setup (2000)