Re: Creating a back button

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24095
interpreted = N
texte = >Or you could just use the [referrer] command that's built into webcatalog...Okay ... let's get back to the original point:The *original* question asked if it's possible to create a Back button on the page that would re-populate a form on the previous page with the same values it had when you left it. Therefore, because the original question had the specific requirement of filling in the form fields again, referrer will NOT work ...Referrer will not work with method=post at all, and it will not work with method=get either ... unless you do a lot of extra work, including putting the correct webdna into the form page that makes each field accept the form variables 'passed into' the page.Basically you have to create a form that makes sure NOTHING gets filled in when coming from the previous page, and yet it fills in all the appropriate field values when coming from the following page.It is possible to do this entirely in webdna, but you won't be able to use a simple [referrer] tag, there's more to it than that. The easiest solution I've seen yet -- besides simply tell visitors to use their browser's Back button -- is to use the javaScript example posted earlier in this thread. That is, if you don't mind relying on JavaScript ...By the way, [referrer] is a tag, not a command ... :) Sincerely, Kenneth Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
>Or you could just use the [referrer] command that's built into webcatalog...Okay ... let's get back to the original point:The *original* question asked if it's possible to create a Back button on the page that would re-populate a form on the previous page with the same values it had when you left it. Therefore, because the original question had the specific requirement of filling in the form fields again, referrer will NOT work ...Referrer will not work with method=post at all, and it will not work with method=get either ... unless you do a lot of extra work, including putting the correct webdna into the form page that makes each field accept the form variables 'passed into' the page.Basically you have to create a form that makes sure NOTHING gets filled in when coming from the previous page, and yet it fills in all the appropriate field values when coming from the following page.It is possible to do this entirely in webdna, but you won't be able to use a simple [referrer] tag, there's more to it than that. The easiest solution I've seen yet -- besides simply tell visitors to use their browser's Back button -- is to use the javaScript example posted earlier in this thread. That is, if you don't mind relying on JavaScript ...By the way, [referrer] is a tag, not a command ... :) Sincerely, Kenneth Grome WebDNA Consultant Kenneth Grome

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:

Associative lookup style? + bit more (1997) Nested tags count question (1997) pop up menu's (1998) Can you do this??? and other stuff (1997) [OT] - simple JS question (2004) XML Parse with XML WebDNA Syntax... (2004) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) [LOOKUP] (1997) Is there a max number of fields? (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Need relative path explanation (1997) Help DebugLevel Content-type: text/html (1998) attacment pdf (2001) Error Log.db --however (1997) [numFound] inside [showIf]? (2000) [username][password] not showing up! HELP! (1999) iTools 7 instructions for 5.1? (2003) SV: Mass Mail (2000) Max Record length restated as maybe bug (1997) NT Version on IIS 4.0 (1997)