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 exampleand mine are reloaded only when the user clicks the submit button, andneither requires a second page.The key to the method I outline is the . When the form is submitted, the page is reloaded, but thistime the code inside the [ShowIf] is executed, and the info in the databaseis updated. Then the search further down the page finds and displays theupdated data in the checkboxes.In addition to being browser-neutral, the method that I outlined is a bitmore secure (using contexts instead of commands), and allows you to dovalidation and more complex manipulation of the data that you are puttinginto the database. In our simple example, it's not much of a concern, butit becomes very handy when dealing with complex forms which must bevalidated. With just a couple [ShowIf]/[HideIf]s you can have the form,error-checking and validation, the error page, and the updated form orsuccess 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:
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 exampleand mine are reloaded only when the user clicks the submit button, andneither requires a second page.The key to the method I outline is the . When the form is submitted, the page is reloaded, but thistime the code inside the [showif] is executed, and the info in the databaseis updated. Then the search further down the page finds and displays theupdated data in the checkboxes.In addition to being browser-neutral, the method that I outlined is a bitmore secure (using contexts instead of commands), and allows you to dovalidation and more complex manipulation of the data that you are puttinginto the database. In our simple example, it's not much of a concern, butit becomes very handy when dealing with complex forms which must bevalidated. With just a couple [showif]/[hideif]s you can have the form,error-checking and validation, the error page, and the updated form orsuccess page all on the same URL.-Daveo--------------- Dave MacLeay --+o----------- Digital Frontier --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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...