Re: YACBQ.....(Yet another checkbox question)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35941
interpreted = N
texte = On 8/8/00 3:04 pm, Bob Sneidar so noted...>I get it now. Still, my previous post about the showif context returning F >if passes a form variable that does not exist would work. Otherwise if an >error is returned you could use an iserror check but I do not see a WebDNA >tag for error checking. > >Now it may be possible on the Mac to write an Applescript because >Applescript DOES have an error checking method: > >[applescript] > try > set [mycheckbox] to [mycheckbox] > set [mycheckbox] to T > on error > set [mycheckbox] to F > return F > end try >[/applescript] > >if the first line generates an APPLESCRIPT error the second line never gets >executed, but instead the code within on error get's executed. If there is a >way to make this server side, saving it as a compiled script then call it >from within a template, then we are in business, on Macintoshes anyway. > >I am a newbie to this sort of thing, but feeding your checkbox variables to >this script would guarantee them to be T or F if the above script works like >I think it would. > >Any thoughts?If you absolutely, positively *have* to have a non-null boolean value for a checkbox (which you don't, really : ) it's simpler to implement in WC4.-- file: checkboxesAdNauseum.html ----------
check 1
check 2
check 3

[math show=f]nuCheck1=[check1]=1[/math] [math show=f]nuCheck2=[check2]=1[/math] [math show=f]nuCheck3=[check3]=1[/math]check 1 = [nuCheck1]
check 2 = [nuCheck2]
check 3 = [nuCheck3]
----------------------------------The nuCheckx variables will *always* exist, and be 1 for checked, 0 if not. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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: YACBQ.....(Yet another checkbox question) (John Butler 2000)
  2. Re: YACBQ.....(Yet another checkbox question) (Rob Marquardt 2000)
  3. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  4. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  5. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  6. Re: YACBQ.....(Yet another checkbox question) (John Peacock 2000)
  7. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  8. Re: YACBQ.....(Yet another checkbox question) (Joseph D'Andrea 2000)
  9. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  10. Re: YACBQ.....(Yet another checkbox question) (Joseph D'Andrea 2000)
  11. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  12. Re: YACBQ.....(Yet another checkbox question) (Will Starck 2000)
  13. Re: YACBQ.....(Yet another checkbox question) (WebDNA Support 2000)
  14. Re: YACBQ.....(Yet another checkbox question) (Bob Minor 2000)
  15. Re: YACBQ.....(Yet another checkbox question) (John Peacock 2000)
  16. Re: YACBQ.....(Yet another checkbox question) (Paul Fowler 2000)
  17. Re: YACBQ.....(Yet another checkbox question) (Rob Marquardt 2000)
  18. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  19. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  20. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  21. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  22. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  23. Re: YACBQ.....(Yet another checkbox question) (Britt T. 2000)
  24. Re: YACBQ.....(Yet another checkbox question) (John Butler 2000)
  25. Re: YACBQ.....(Yet another checkbox question) (Anup Setty 2000)
  26. Re: YACBQ.....(Yet another checkbox question) (Kim Ingram 2000)
  27. Re: YACBQ.....(Yet another checkbox question) (Will Starck 2000)
  28. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  29. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  30. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  31. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  32. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  33. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  34. YACBQ.....(Yet another checkbox question) (Will Starck 2000)
On 8/8/00 3:04 pm, Bob Sneidar so noted...>I get it now. Still, my previous post about the showif context returning F >if passes a form variable that does not exist would work. Otherwise if an >error is returned you could use an iserror check but I do not see a WebDNA >tag for error checking. > >Now it may be possible on the Mac to write an Applescript because >Applescript DOES have an error checking method: > >[applescript] > try > set [mycheckbox] to [mycheckbox] > set [mycheckbox] to T > on error > set [mycheckbox] to F > return F > end try >[/applescript] > >if the first line generates an APPLESCRIPT error the second line never gets >executed, but instead the code within on error get's executed. If there is a >way to make this server side, saving it as a compiled script then call it >from within a template, then we are in business, on Macintoshes anyway. > >I am a newbie to this sort of thing, but feeding your checkbox variables to >this script would guarantee them to be T or F if the above script works like >I think it would. > >Any thoughts?If you absolutely, positively *have* to have a non-null boolean value for a checkbox (which you don't, really : ) it's simpler to implement in WC4.-- file: checkboxesAdNauseum.html ----------
check 1
check 2
check 3

[math show=f]nuCheck1=[check1]=1[/math] [math show=f]nuCheck2=[check2]=1[/math] [math show=f]nuCheck3=[check3]=1[/math]check 1 = [nuCheck1]
check 2 = [nuCheck2]
check 3 = [nuCheck3]
----------------------------------The nuCheckx variables will *always* exist, and be 1 for checked, 0 if not. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

SiteCheck & WebCat ? (1997) searching multiple databases (1997) One other big addition... (1997) Postdata expired from cache (2004) Searching Dates (2000) CC Processing (2001) date sorting and 'template (1997) Shopping cart now bad (1997) Clean source code (2007) [lowercase] and [mixedcase] (1998) Wrapping text (1998) WebCatalog can't find database (1997) [WebDNA] WebDNA MacTel and more... (2009) View order not right (1997) [include] affect on filepaths for links? (1997) WebCat2 - many [carts] on one template page? (1997) InSecureTextVariables.... (2000) Practice runs ? (1997) WebMerchant - fixed, now trigger question... (1999) [WebDNA] Where is Speed Test? (2009)