Re: Code intermittently reverts to previous state

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33692
interpreted = N
texte = I really don't know what is causing your problem, but can you try to base the hideif on something other than [thisURL]? If I remember right, [thisURL] acts differently on differernt platforms, so maybe it also acts differently in other situations. Nice and vague huh? ;-) Anyway try-----START /calendars.tpl ----- [text]isCalendarsTMPL=yes[/text] [hideif [isCalendarsTMPL]=yes]Quantity: [/hideif] -----END /calendars.tpl -----and see it that makes a difference-JohnGabriel Shirley wrote:> Hi, > > I've been tracking a frustrating intermittent problem where WebCat appears > to be occasionally serving code that has since been modified. The problem > is not reproducible on demand, but there have been enough user reports to > verify that it's happening with different pages on the same server (and > different browsers/platforms). It seems to be related to [showif] and > [hideif] contexts not working properly under some set of conditions. > > If anyone has experienced this kind of behavior, I'd appreciate hearing > about it and learning if you found a solution. Here is a specific example: > > -----Example----- > http://www.brushdance.com/tpl/calendars.tpl > This template displays calendars that will be (but are not yet) for sale on > this site. An earlier (development) version of this template allowed you to > add the calendars to your cart. The current version has the quantity field > and add to cart button hidden so that orders can't be placed at this time. > > [hideif [thisURL]^calendars.tpl] size=2 face=Arial, Helvetica, sans-serif>Quantity: name=quantity size=3 value=1> > > > > [/hideif] > > Yesterday an order came through that included a calendar. The only way this > is possible is if the code above is not hidden. That should be impossible > because the calendars are only visible on calendars.tpl. It may also be > relevant to say that the code above is part of an include file that is > called by calendars.tpl to display the product. > -----/Example----- > > Is there some known set of conditions that causes [hideif] and [showif] tags > to not do their jobs? > > WebStar 4.2 > WebCat plugin 3.0.4 > MacOS 9 > G4/400 > 80MB available to WebCat > > TIA, > > Gabriel > -- > Gabriel Shirley > Big Mind Media - http://www.bigmindmedia.com > P.O. Box 1093 - 772 Camano Avenue, Suite 101 > Langley, WA 98260 > 360-221-7701 - 360-838-0117 Fax > --- > BigMindMedia jobs & internships: > http://www.bigmindmedia.com/html/company/jobs.html > --- > > ------------------------------------------------------------- > 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: Code intermittently reverts to previous state (John Butler 2000)
  2. Code intermittently reverts to previous state (Gabriel Shirley 2000)
I really don't know what is causing your problem, but can you try to base the hideif on something other than [thisurl]? If I remember right, [thisurl] acts differently on differernt platforms, so maybe it also acts differently in other situations. Nice and vague huh? ;-) Anyway try-----START /calendars.tpl ----- [text]isCalendarsTMPL=yes[/text] [hideif [isCalendarsTMPL]=yes]Quantity: [/hideif] -----END /calendars.tpl -----and see it that makes a difference-JohnGabriel Shirley wrote:> Hi, > > I've been tracking a frustrating intermittent problem where WebCat appears > to be occasionally serving code that has since been modified. The problem > is not reproducible on demand, but there have been enough user reports to > verify that it's happening with different pages on the same server (and > different browsers/platforms). It seems to be related to [showif] and > [hideif] contexts not working properly under some set of conditions. > > If anyone has experienced this kind of behavior, I'd appreciate hearing > about it and learning if you found a solution. Here is a specific example: > > -----Example----- > http://www.brushdance.com/tpl/calendars.tpl > This template displays calendars that will be (but are not yet) for sale on > this site. An earlier (development) version of this template allowed you to > add the calendars to your cart. The current version has the quantity field > and add to cart button hidden so that orders can't be placed at this time. > > [hideif [thisurl]^calendars.tpl] size=2 face=Arial, Helvetica, sans-serif>Quantity: name=quantity size=3 value=1> > > > > [/hideif] > > Yesterday an order came through that included a calendar. The only way this > is possible is if the code above is not hidden. That should be impossible > because the calendars are only visible on calendars.tpl. It may also be > relevant to say that the code above is part of an include file that is > called by calendars.tpl to display the product. > -----/Example----- > > Is there some known set of conditions that causes [hideif] and [showif] tags > to not do their jobs? > > WebStar 4.2 > WebCat plugin 3.0.4 > MacOS 9 > G4/400 > 80MB available to WebCat > > TIA, > > Gabriel > -- > Gabriel Shirley > Big Mind Media - http://www.bigmindmedia.com > P.O. Box 1093 - 772 Camano Avenue, Suite 101 > Langley, WA 98260 > 360-221-7701 - 360-838-0117 Fax > --- > BigMindMedia jobs & internships: > http://www.bigmindmedia.com/html/company/jobs.html > --- > > ------------------------------------------------------------- > 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 Butler

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:

textA (1998) emailer (1997) Not really WebCat (1997) OT: Prevent Caching js Files (2003) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) Entry pages (was: WebCatalog MAJOR drawback) (1998) WCS Newbie question (1997) Showif, Hideif reverse logic ? (1997) What am I missing (1997) Capitalize command (2000) off-topic - printinglib 68K (1997) page redirect in webDNA (1997) Help name our technology! (1997) A Global Variable (1997) [RemoveHTML] removing JavaScript ?? (2008) Simple counter - how? (1997) WebCat editing, SiteGuard & SiteEdit (1997) Date format question (1998) WebCat2: Formulas.db question (1997) Not really WebCat (1997)