CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 history.go

Print topic Send  topic

Author Message
KP
Posted: 10/22/2003, 11:28 PM

How do I configure a Cancel button to go back to the last page such as in
history.go(-1) - I've tried putting that in the onClick and onMouseDown
events but no luck.

KP

DonB
Posted: 10/23/2003, 7:09 AM

You missed an important point: The even code runs on the server and the
history.go(-1) must run on the client. So you can't execute the javascript
in the eventhandler.

This is how I do it:

http://www.gotodon.com/ccbth/features/KnowledgeBase.asp?find=back

--
DonB

http://www.gotodon.com/ccbth


"KP" <workcover@hotskunk.com> wrote in message
news:bn7sf3$rdf$1@news.codecharge.com...
> How do I configure a Cancel button to go back to the last page such as in
> history.go(-1) - I've tried putting that in the onClick and onMouseDown
> events but no luck.
>
> KP
>
>

KP
Posted: 10/24/2003, 12:15 AM

Thanks Don. Since posting this I did a bit more experimentation. What I did
was remove all return page references (its not an update form), changed the
button from a "submit" to a "button" and put "history.go(-1)" in onClick
under events in the format tab. Works great but thanks for taking the time
to respond - I still like your approach.

KP

"DonB" <~ccbth~@gotodon.com> wrote in message
news:bn8nfj$flj$1@news.codecharge.com...
> You missed an important point: The even code runs on the server and the
> history.go(-1) must run on the client. So you can't execute the
javascript
> in the eventhandler.
>
> This is how I do it:
>
> http://www.gotodon.com/ccbth/features/KnowledgeBase.asp?find=back
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "KP" <workcover@hotskunk.com> wrote in message
>news:bn7sf3$rdf$1@news.codecharge.com...
> > How do I configure a Cancel button to go back to the last page such as
in
> > history.go(-1) - I've tried putting that in the onClick and onMouseDown
> > events but no luck.
> >
> > KP
> >
> >
>
>

DonB
Posted: 10/24/2003, 7:23 AM

Yeah, that will get you the same result. Moslty a matter of personal taste,
I prefer not coding in the html directly unless there is no other choice.

--
DonB

http://www.gotodon.com/ccbth


"KP" <workcover@hotskunk.com> wrote in message
news:bnajif$1do$1@news.codecharge.com...
> Thanks Don. Since posting this I did a bit more experimentation. What I
did
> was remove all return page references (its not an update form), changed
the
> button from a "submit" to a "button" and put "history.go(-1)" in onClick
> under events in the format tab. Works great but thanks for taking the time
> to respond - I still like your approach.
>
> KP
>
> "DonB" <~ccbth~@gotodon.com> wrote in message
>news:bn8nfj$flj$1@news.codecharge.com...
> > You missed an important point: The even code runs on the server and the
> > history.go(-1) must run on the client. So you can't execute the
> javascript
> > in the eventhandler.
> >
> > This is how I do it:
> >
> > http://www.gotodon.com/ccbth/features/KnowledgeBase.asp?find=back
> >
> > --
> > DonB
> >
> > http://www.gotodon.com/ccbth
> >
> >
> > "KP" <workcover@hotskunk.com> wrote in message
> >news:bn7sf3$rdf$1@news.codecharge.com...
> > > How do I configure a Cancel button to go back to the last page such as
> in
> > > history.go(-1) - I've tried putting that in the onClick and
onMouseDown
> > > events but no luck.
> > >
> > > KP
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.