RE: disable back button of the browser
RE: disable back button of the browser
- Subject: RE: disable back button of the browser
- From: "Kranthi Sagar Borra" <email@hidden>
- Date: Mon, 17 Nov 2003 13:41:19 +0530
- Thread-topic: disable back button of the browser
Thank you Marek,My page needs to update the database on submit,so I need to implement the second method.So someone explain me n brief what I need to do here.thank you.
Regards,
Kranthi Sagar
> ----------
> From: Marek Wawrzyczny
> Sent: Monday, November 17, 2003 6:05 AM
> To: Marek Wawrzyczny
> Cc: Kranthi Sagar Borra; john lennard; email@hidden
> Subject: Re: disable back button of the browser
>
> Sorry, I just realized that I should have coffee before replying to
> posts.
>
> I have looked at this one before. I came up with two solutions.
>
> The first solution, is to implement your own "edit cache" within the
> session object. Your edit pages operate on this "edit cache" object. On
> form submit you simply move your edited object elsewhere and null the
> "edit cache" object. If the user then back tracks to the page, you can
> detect that the "edited object" is null and customize the response.
> This works for apps where you cannot commit objects to the database
> immediately on form submit (i.e. shopping baskets).
>
> The second solution, to delete the page from backtrack store... I could
> not implement this one because I could never find the API into the
> backtrack page store. I know it lives in the WOSession but there
> doesn't seem any obvious way to access it. This would also involve
> overriding the handlePageRestorationErrorInContext(WOContext aContext)
> in WOApplication to implement custom behaviour.
>
>
> On Monday, Nov 17, 2003, at 09:45 Australia/Sydney, Marek Wawrzyczny
> wrote:
>
> > Make the page a direct action page and make sure the expires header is
> > properly set.
> >
> > On Monday, Nov 17, 2003, at 01:31 Australia/Sydney, Kranthi Sagar
> > Borra wrote:
> >
> >> Hi John,
> >> Thanks a lot for that.But I have a small query.That article which you
> >> have shown me tells me about disabling the backtracking all together
> >> in my application.But my requirement is just to disable the
> >> backtracking only for a particular page in the application.Can you
> >> please tell me how this is achieved.
> >>
> >> Regards,
> >>
> >> Kranthi Sagar
> >> Extn:6799
> >> Direct:0824-2226799
> >> Cell:9845791246
> >>
> >>
> >>
> >>> ----------
> >>> From: john lennard
> >>> Sent: Sunday, November 16, 2003 5:08 PM
> >>> To: Kranthi Sagar Borra
> >>> Cc: email@hidden
> >>> Subject: Re: disable back button of the browser
> >>>
> >>>
> >>> Hello,
> >>>
> >>> There is a good article that covers this on stepwise..
> >>>
> >>> http://www.stepwise.com/Articles/Technical/2003-08-15.01.html
> >>>
> >>>
> >>> regards
> >>> john
> >>>
> >>> On 17/11/2003, at 12:22 AM, Kranthi Sagar Borra wrote:
> >>>
> >>>> Hi
> >>>>
> >>>> My requirement is to disable the back button when the user submits a
> >>>> particular form.Either it should disable the back button or not
> >>>> allow
> >>>> the user to access this page again.Can anybody suggest me what to
> >>>> do.Thanks in advance.
> >>>>
> >>>> Regards,
> >>>> Kranthi Sagar
> >>>> _______________________________________________
> >>>> webobjects-dev mailing list | email@hidden
> >>>> Help/Unsubscribe/Archives:
> >>>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> >>>> Do not post admin requests to the list. They will be ignored.
> >> _______________________________________________
> >> webobjects-dev mailing list | email@hidden
> >> Help/Unsubscribe/Archives:
> >> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> >> Do not post admin requests to the list. They will be ignored.
> >>
> >>
> >
> > Marek Wawrzyczny
> >
> > software engineer
> > -------------------------->
> > ish group pty ltd
> > 7 Darghan St Glebe 2037 Australia
> > phone +61 2 9660 1400 fax +61 2 9660 7400
> > http www.ish.com.au | email email@hidden
> > _______________________________________________
> > webobjects-dev mailing list | email@hidden>
> > Help/Unsubscribe/Archives:
> > http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> > Do not post admin requests to the list. They will be ignored.
> >
> >
>
> Marek Wawrzyczny
>
> software engineer
> -------------------------->
> ish group pty ltd
> 7 Darghan St Glebe 2037 Australia
> phone +61 2 9660 1400 fax +61 2 9660 7400
> http www.ish.com.au | email email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.