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 GromeWebDNA 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 GromeWebDNA 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:
weight based shipping cost questions (1997)
[SearchString] problem with [search] context (1997)
Running _every_ page through WebCat-error.html (1997)
Misunderstanding?? (1997)
WC2.0 Memory Requirements (1997)
Triggers In Sandboxes (2006)
[WebDNA] Different responses for the same commands ... (2011)
NT vs Mac (1997)
Robert Minor duplicate mail (1997)
Pager notification of completed orders (1998)
[WebDNA] CRITICAL ISSUE: PrivateTmp and "Sorry WebDNA server not (2019)
WebCat2 as a chat server? (1997)
PCS Emailer's role ? (1997)
Forms Search Questions (1997)
Draft Manual, Tutorial, and more (1997)
Setting up WebCatalog with Retail Pro data (1996)
Problem displaying search result (1997)
WebCatalog occasionally stopping (2001)
PCS Emailer's role ? (1997)
Help with Repost Data msg from form (1997)