Re: Design Help Needed

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20285
interpreted = N
texte = Rob,This looks great, only do to my lack of a Full understanding of WebCat I was hoping you could explain your syntax a little more, if you have time. I am not replacing with a context on the next page. This is a straight-up replace to a database.
Swimming Pool
So I figure I will use this example that you sent along to me:>If your checkboxes in the form were named such as: > > > > >Which means that I will change the names to start with an '_'I think I have that much. But then I get a little lost here:>then the following would add their values (as T or F) to a database: > >[append db=whatever.db]......[formvariables >name=_&exact=F]&[name]=[showif [value]=T]T[/showif][showif >[value]!T]F[/showif][/formvariables]........[/append]I guess this loops through the form variables and evaluatrs all that start with '_'?This is going to replace my existing append? I am not sure how to implement this on my page. I know that this is just a snippit, but seeing what I already have from above, where does this go?Thanks very much for your reply. I beleive this is exactly what I want to do, just not 100% on the how-to part.- Charles>On 10/8/98 9:29 AM, Howard Wolosky so noted... > >>>Good, this is the way I will go. I have one more question though. I am >>>using check boxes for the options. If it is checked I will send the value >>>'T', is there a way to have an 'F' sent if the box is not checked or is >>>it cool to just leave the field empty in the database? >> >>Let's say your checkbox was called bath. >> >> If you are appending/replacing with a context on the next page, I >>generally like to do: >> >>[append db=whatever.db]......&[showif >>[bath]=[raw][bath][/raw]]F[/showif][hideif >>[bath]=[raw][bath][/raw]][bath][/hideif]&........[/append] > >Since you're just sending a boolean (T/F) this could be simplified as: > >[append db=whatever.db]......&bath=[showif [bath]=T]T[/showif][showif >[bath]!T]F[/showif]&........[/append] > >If you have a huge number of these (which it sounds like you do) it may >be easier to give each checkbox name a unique character and use a >[formvariables] to loop through them to do the append. > >If your checkboxes in the form were named such as: > > > > > >then the following would add their values (as T or F) to a database: > >[append db=whatever.db]......[formvariables >name=_&exact=F]&[name]=[showif [value]=T]T[/showif][showif >[value]!T]F[/showif][/formvariables]........[/append] > >Note that the way this is set up, no other form element names could >contain an underscore character (or else they'd be processed in that >formvariables loop as well). > >Rob Marquardt >Designer/Resident Wirehead >Toast Design > >300 First Avenue North, Suite 150 >Minneapolis MN 55401 >612.330.9863 v >612.321.9424 f >www.toastdesign.com > > > _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 Associated Messages, from the most recent to the oldest:

    
  1. Re: Design Help Needed (Rob Marquardt 1998)
  2. Re: Design Help Needed (PCS Technical Support 1998)
  3. Re: Design Help Needed (charles kline 1998)
  4. Re: Design Help Needed (Rob Marquardt 1998)
  5. Re: Design Help Needed (Howard Wolosky 1998)
  6. Re: Design Help Needed (charles kline 1998)
  7. Re: Design Help Needed (charles kline 1998)
  8. Re: Design Help Needed (charles kline 1998)
  9. Re: Design Help Needed (PCS Technical Support 1998)
  10. Re: Design Help Needed (Laurent Pladys 1998)
  11. Design Help Needed (charles kline 1998)
Rob,This looks great, only do to my lack of a Full understanding of WebCat I was hoping you could explain your syntax a little more, if you have time. I am not replacing with a context on the next page. This is a straight-up replace to a database.
Swimming Pool
So I figure I will use this example that you sent along to me:>If your checkboxes in the form were named such as: > > > > >Which means that I will change the names to start with an '_'I think I have that much. But then I get a little lost here:>then the following would add their values (as T or F) to a database: > >[append db=whatever.db]......[formvariables >name=_&exact=F]&[name]=[showif [value]=T]T[/showif][showif >[value]!T]F[/showif][/formvariables]........[/append]I guess this loops through the form variables and evaluatrs all that start with '_'?This is going to replace my existing append? I am not sure how to implement this on my page. I know that this is just a snippit, but seeing what I already have from above, where does this go?Thanks very much for your reply. I beleive this is exactly what I want to do, just not 100% on the how-to part.- Charles>On 10/8/98 9:29 AM, Howard Wolosky so noted... > >>>Good, this is the way I will go. I have one more question though. I am >>>using check boxes for the options. If it is checked I will send the value >>>'T', is there a way to have an 'F' sent if the box is not checked or is >>>it cool to just leave the field empty in the database? >> >>Let's say your checkbox was called bath. >> >> If you are appending/replacing with a context on the next page, I >>generally like to do: >> >>[append db=whatever.db]......&[showif >>[bath]=[raw][bath][/raw]]F[/showif][hideif >>[bath]=[raw][bath][/raw]][bath][/hideif]&........[/append] > >Since you're just sending a boolean (T/F) this could be simplified as: > >[append db=whatever.db]......&bath=[showif [bath]=T]T[/showif][showif >[bath]!T]F[/showif]&........[/append] > >If you have a huge number of these (which it sounds like you do) it may >be easier to give each checkbox name a unique character and use a >[formvariables] to loop through them to do the append. > >If your checkboxes in the form were named such as: > > > > > >then the following would add their values (as T or F) to a database: > >[append db=whatever.db]......[formvariables >name=_&exact=F]&[name]=[showif [value]=T]T[/showif][showif >[value]!T]F[/showif][/formvariables]........[/append] > >Note that the way this is set up, no other form element names could >contain an underscore character (or else they'd be processed in that >formvariables loop as well). > >Rob Marquardt >Designer/Resident Wirehead >Toast Design > >300 First Avenue North, Suite 150 >Minneapolis MN 55401 >612.330.9863 v >612.321.9424 f >www.toastdesign.com > > > _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 charles kline

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:

possible, WebCat2.0 and checkboxes-restated (1997) can WC render sites out? (1997) WebCat2 beta 11 - new prefs ... (1997) wc 2 pro users - sites, quotes wanted (1997) Running _every_ page through WebCat ? (1997) Concerning Emailer under Linux... does it exist? (2000) Shipcost formula (2004) WebCat Talk Arhives... (1998) [OT] Javascript help (2007) Math with Time (1997) Use WebCat to search files in a folder like a search engine? (2001) multiple prices (1998) [WebDNA] Search 2 databases ??? (2009) Nested [SEARCH] and [REPLACE] problem. (1997) WebCat2 - Getting to the browser's username/password data (1997) Search inside Include (1998) Drop Down Menus (2002) New Cart No. on same page (2003) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Emailer port change (1997)