Re: Pass Thru Page?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19843
interpreted = N
texte = >Is it possible in web catalog to have a page where for example when >submitting an invoice, this page is loaded and interpreted, possibly >checking field values, etc. and will display information if there are >problems with the field values telling you to click the back button and >fix them, but if there are no problems, it continues and loads the final >page - thank you page.Yes, and one technique is to use a little math counter to add up the number of 'bad' field values, and if the math counter remains 0, then that means it's OK to execute the rest of the page:[math]numProblems=0[/math] [ShowIf [name]=] [math]numProblems=numProblems+1[/math]

You must enter a name

[/ShowIf] [ShowIf [address]=] [math]numProblems=numProblems+1[/math]

You must enter an address

[/ShowIf][ShowIf [math]numProblems[/math]=0] ...do the 'good' stuff on your page here [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Pass Thru Page? (PCS Technical Support 1998)
  2. Re: Pass Thru Page? (Kenneth Grome 1998)
  3. Re: Pass Thru Page? (Kenneth Grome 1998)
  4. Pass Thru Page? (Scott Szretter 1998)
  5. Re: Pass Thru Page? (Peter Ostry 1998)
>Is it possible in web catalog to have a page where for example when >submitting an invoice, this page is loaded and interpreted, possibly >checking field values, etc. and will display information if there are >problems with the field values telling you to click the back button and >fix them, but if there are no problems, it continues and loads the final >page - thank you page.Yes, and one technique is to use a little math counter to add up the number of 'bad' field values, and if the math counter remains 0, then that means it's OK to execute the rest of the page:[math]numProblems=0[/math] [ShowIf [name]=] [math]numProblems=numProblems+1[/math]

You must enter a name

[/ShowIf] [ShowIf [address]=] [math]numProblems=numProblems+1[/math]

You must enter an address

[/ShowIf][ShowIf [math]numProblems[/math]=0] ...do the 'good' stuff on your page here [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

quantity minimum problem (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Append File help needed (2000) choice of images (2000) WebCatalog [FoundItems] Problem - LONG - (1997) Mac: LModelDirector bug fix (1997) Cache headers - WebDNA 5 (2005) webcat license???? (1997) Pull Down Search (2000) Feedback Please (2003) [ListFiles] & [loop] (1998) HELP WITH DATES (1997) Need help with text area (1998) Separate SSL Server (1997) [WebDNA] incomplete redirect tag (2009) bug urgent, [protect admin ] and .max work wrong (2003) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Not really WebCat (1997) RFE: [include file=filename.inc&strip=t] (2002) WebCat b13 CGI -shownext- (1997)