Re: Updating checkboxes made easy !!!

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18202
interpreted = N
texte = At 4:57 AM 6/12/98, Laurent Pladys wrote: >If the page doesn't auto reload itself you need a second page to do the >update as with the old way of doing it. >I will test it with diffferent browsers to validate its usefulness, but >it is used in the Lasso files when updating checkboxes in an FM Pro >databaseI'm not sure what you mean by auto reload itself -- both your example and mine are reloaded only when the user clicks the submit button, and neither requires a second page.The key to the method I outline is the . When the form is submitted, the page is reloaded, but this time the code inside the [ShowIf] is executed, and the info in the database is updated. Then the search further down the page finds and displays the updated data in the checkboxes.In addition to being browser-neutral, the method that I outlined is a bit more secure (using contexts instead of commands), and allows you to do validation and more complex manipulation of the data that you are putting into the database. In our simple example, it's not much of a concern, but it becomes very handy when dealing with complex forms which must be validated. With just a couple [ShowIf]/[HideIf]s you can have the form, error-checking and validation, the error page, and the updated form or success page all on the same URL.-Daveo--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  2. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  3. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  4. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  5. Updating checkboxes made easy !!! (Laurent Pladys 1998)
  6. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  7. Re: Updating checkboxes made easy !!! (Bob Minor 1998)
At 4:57 AM 6/12/98, Laurent Pladys wrote: >If the page doesn't auto reload itself you need a second page to do the >update as with the old way of doing it. >I will test it with diffferent browsers to validate its usefulness, but >it is used in the Lasso files when updating checkboxes in an FM Pro >databaseI'm not sure what you mean by auto reload itself -- both your example and mine are reloaded only when the user clicks the submit button, and neither requires a second page.The key to the method I outline is the . When the form is submitted, the page is reloaded, but this time the code inside the [showif] is executed, and the info in the database is updated. Then the search further down the page finds and displays the updated data in the checkboxes.In addition to being browser-neutral, the method that I outlined is a bit more secure (using contexts instead of commands), and allows you to do validation and more complex manipulation of the data that you are putting into the database. In our simple example, it's not much of a concern, but it becomes very handy when dealing with complex forms which must be validated. With just a couple [showif]/[hideif]s you can have the form, error-checking and validation, the error page, and the updated form or success page all on the same URL.-Daveo--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

NT considerations (1997) Solution: [searh] or [shownext]problem (1998) Macauth: Dates and No Scripting... (1997) File Upload (1997) More on the email templates (1997) Pixel parameters (2000) WebDNA on Intel Mac? (2006) Emailer Timing out (1999) Is grep not working with umlauts? (2002) Founditems context returning only 1 item (1997) [Price] (1997) autosensing lanague selection (1997) Multiple catalog databases and showcart (1997) What is the syntax for MIME type on Apache server? (2000) SIMS setup (1998) cart (1997) Help formatting search results w/ table (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WCf2 and nested tags (1997) Attn: Bug in GeneralStore example b15 (1997)