mljonzs
Posts: 124
|
| Posted: 04/11/2007, 8:41 AM |
|
I feel kind of dumb asking this, but there has GOT to be an easier way to do this than what I am currently doing.
How can I add a "Cancel" button to a page that will simply go back to the previous page as if the user used the browser back button rather than the cancel button?? I don't always know exactly which page to go to and have to go through a bunch of checks to figure it out when it seems like it would be much easier to just be able to jump back to the desired page somehow??
Any thoughts?
Thanks!
mlj
_________________
What does not begin WITH God, will end in failure!
|
 |
 |
ReneS
Posts: 225
|
| Posted: 04/11/2007, 12:02 PM |
|
Hi,
Little javascript:
<a href="#" onClick="history.go(-1)">Back</a>
<input type=button value="Back" onClick="history.go(-1)">
Value of -1 takes user back 1 page, value -2, two pages etc.
Thanks to: javascriptsource.com
Rene
|
 |
 |
wkempees
|
| Posted: 04/11/2007, 12:16 PM |
|
From Grid to Form, the Cancel will jump back to Grid.
You also have the option to define the ReturnPage in the Properties of the
Form->Record
And of course you can do you own redirect in CCS, Help file search for
redirect
or search this forum using the Search button in the top menu.
Walter
"mljonzs" <mljonzs@forum.codecharge> schreef in bericht
news:6461d01955840b@news.codecharge.com...
>I feel kind of dumb asking this, but there has GOT to be an easier way to
>do
> this than what I am currently doing.
>
> How can I add a "Cancel" button to a page that will simply go back to the
> previous page as if the user used the browser back button rather than the
> cancel
> button?? I don't always know exactly which page to go to and have to
> go
> through a bunch of checks to figure it out when it seems like it would be
> much
> easier to just be able to jump back to the desired page somehow??
>
> Any thoughts?
>
> Thanks!
> mlj
> _________________
> Happy coding!
> mljonzs
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
|