-
How to trap action of Back Button in IE Toolbar ?
Hello Everybody,
I would like anyone to help me. My problem is that i want to trap the event
of Back Button in the browser to null, so that when i click it no action
takes place and i stay in the same page with the data present.Actually i
am in a condition that when i go back i lose all the data, so in order to
prevent this i want the action to be nullified. Also can i disable or hide
this button on load of a particular jsp ?
The same condition i have to apply on Back, Forward and Refresh Buttons.
Thanks in Advance Guys.
-
Re: How to trap action of Back Button in IE Toolbar ?
No, you can't prevent someone from clicking Back. That's a Good Thing IMO,
otherwise people would use the feature to prevent you from leaving their
sites. Instead, consider opening your form in a new window. That window will
have no history; therefore, the Back button won't be active.
"Balaji" <webdev.@127.0.0.1> wrote in message
news:3ed72f01$1@tnews.web.devx.com...
>
> Hello Everybody,
> I would like anyone to help me. My problem is that i want to trap the
event
> of Back Button in the browser to null, so that when i click it no action
> takes place and i stay in the same page with the data present.Actually i
> am in a condition that when i go back i lose all the data, so in order to
> prevent this i want the action to be nullified. Also can i disable or hide
> this button on load of a particular jsp ?
> The same condition i have to apply on Back, Forward and Refresh Buttons.
>
> Thanks in Advance Guys.
>
-
Re: How to trap action of Back Button in IE Toolbar ?
Or you can always use sessions to do it. I have basic knowledge of PHP and
thats what I would use to do it .. although my programming skill are still
very low, sessions arent that difficult.
"Russell Jones" <arj1@nospam.northstate.net> wrote:
>No, you can't prevent someone from clicking Back. That's a Good Thing IMO,
>otherwise people would use the feature to prevent you from leaving their
>sites. Instead, consider opening your form in a new window. That window
will
>have no history; therefore, the Back button won't be active.
>
>
>"Balaji" <webdev.@127.0.0.1> wrote in message
>news:3ed72f01$1@tnews.web.devx.com...
>>
>> Hello Everybody,
>> I would like anyone to help me. My problem is that i want to trap the
>event
>> of Back Button in the browser to null, so that when i click it no action
>> takes place and i stay in the same page with the data present.Actually
i
>> am in a condition that when i go back i lose all the data, so in order
to
>> prevent this i want the action to be nullified. Also can i disable or
hide
>> this button on load of a particular jsp ?
>> The same condition i have to apply on Back, Forward and Refresh Buttons.
>>
>> Thanks in Advance Guys.
>>
>
>
-
Re: How to trap action of Back Button in IE Toolbar ?
No, you can't. Using Sessions can prevent the server from losing any data
stored by that session, but it doesn't (and can't) prevent the user from
clicking the Back button and losing data they just entered on the current
page. If the Back button is active, the user can click it. That may cause a
request to the server (depending on the page headers). The server will
reply, and the browser may lose the user-entered data. But by opening the
page(s) in a new window, the page author can control whether the Back (and
other toolbar buttons) even appear. The only way to prevent a user from
clicking Back is to either open a new window without the toolbar visible, or
to open a new window that has no history, so that the Back button is
disabled by the browser.
"Vinh Nguyen" <webster@calitoday.com> wrote in message
news:3ef8a56b$1@tnews.web.devx.com...
>
> Or you can always use sessions to do it. I have basic knowledge of PHP
and
> thats what I would use to do it .. although my programming skill are still
> very low, sessions arent that difficult.
>
> "Russell Jones" <arj1@nospam.northstate.net> wrote:
> >No, you can't prevent someone from clicking Back. That's a Good Thing
IMO,
> >otherwise people would use the feature to prevent you from leaving their
> >sites. Instead, consider opening your form in a new window. That window
> will
> >have no history; therefore, the Back button won't be active.
> >
> >
> >"Balaji" <webdev.@127.0.0.1> wrote in message
> >news:3ed72f01$1@tnews.web.devx.com...
> >>
> >> Hello Everybody,
> >> I would like anyone to help me. My problem is that i want to trap the
> >event
> >> of Back Button in the browser to null, so that when i click it no
action
> >> takes place and i stay in the same page with the data present.Actually
> i
> >> am in a condition that when i go back i lose all the data, so in order
> to
> >> prevent this i want the action to be nullified. Also can i disable or
> hide
> >> this button on load of a particular jsp ?
> >> The same condition i have to apply on Back, Forward and Refresh
Buttons.
> >>
> >> Thanks in Advance Guys.
> >>
> >
> >
>
-
Re: How to trap action of Back Button in IE Toolbar ?
Even w/o toolbar, user still can use backspace to go back previoius page!
"Russell Jones" <arj1@nospam.northstate.net> wrote:
>No, you can't. Using Sessions can prevent the server from losing any data
>stored by that session, but it doesn't (and can't) prevent the user from
>clicking the Back button and losing data they just entered on the current
>page. If the Back button is active, the user can click it. That may cause
a
>request to the server (depending on the page headers). The server will
>reply, and the browser may lose the user-entered data. But by opening the
>page(s) in a new window, the page author can control whether the Back (and
>other toolbar buttons) even appear. The only way to prevent a user from
>clicking Back is to either open a new window without the toolbar visible,
or
>to open a new window that has no history, so that the Back button is
>disabled by the browser.
>
>
>"Vinh Nguyen" <webster@calitoday.com> wrote in message
>news:3ef8a56b$1@tnews.web.devx.com...
>>
>> Or you can always use sessions to do it. I have basic knowledge of PHP
>and
>> thats what I would use to do it .. although my programming skill are still
>> very low, sessions arent that difficult.
>>
>> "Russell Jones" <arj1@nospam.northstate.net> wrote:
>> >No, you can't prevent someone from clicking Back. That's a Good Thing
>IMO,
>> >otherwise people would use the feature to prevent you from leaving their
>> >sites. Instead, consider opening your form in a new window. That window
>> will
>> >have no history; therefore, the Back button won't be active.
>> >
>> >
>> >"Balaji" <webdev.@127.0.0.1> wrote in message
>> >news:3ed72f01$1@tnews.web.devx.com...
>> >>
>> >> Hello Everybody,
>> >> I would like anyone to help me. My problem is that i want to trap the
>> >event
>> >> of Back Button in the browser to null, so that when i click it no
>action
>> >> takes place and i stay in the same page with the data present.Actually
>> i
>> >> am in a condition that when i go back i lose all the data, so in order
>> to
>> >> prevent this i want the action to be nullified. Also can i disable
or
>> hide
>> >> this button on load of a particular jsp ?
>> >> The same condition i have to apply on Back, Forward and Refresh
>Buttons.
>> >>
>> >> Thanks in Advance Guys.
>> >>
>> >
>> >
>>
>
>
-
Re: How to trap action of Back Button in IE Toolbar ?
It's true that you can use the keyboard to navigate backward, but if you
read my post again, you'll see that I was saying that you can prevent users
from navigating backward by opening content in a new window. That works
because the new window has no pages in its history list to go "back" *to.*
"clee" <webdev.@127.0.0.1> wrote in message
news:3f4e28f0$1@tnews.web.devx.com...
>
> Even w/o toolbar, user still can use backspace to go back previoius page!
>
> "Russell Jones" <arj1@nospam.northstate.net> wrote:
> >No, you can't. Using Sessions can prevent the server from losing any data
> >stored by that session, but it doesn't (and can't) prevent the user from
> >clicking the Back button and losing data they just entered on the current
> >page. If the Back button is active, the user can click it. That may cause
> a
> >request to the server (depending on the page headers). The server will
> >reply, and the browser may lose the user-entered data. But by opening the
> >page(s) in a new window, the page author can control whether the Back
(and
> >other toolbar buttons) even appear. The only way to prevent a user from
> >clicking Back is to either open a new window without the toolbar visible,
> or
> >to open a new window that has no history, so that the Back button is
> >disabled by the browser.
> >
> >
> >"Vinh Nguyen" <webster@calitoday.com> wrote in message
> >news:3ef8a56b$1@tnews.web.devx.com...
> >>
> >> Or you can always use sessions to do it. I have basic knowledge of PHP
> >and
> >> thats what I would use to do it .. although my programming skill are
still
> >> very low, sessions arent that difficult.
> >>
> >> "Russell Jones" <arj1@nospam.northstate.net> wrote:
> >> >No, you can't prevent someone from clicking Back. That's a Good Thing
> >IMO,
> >> >otherwise people would use the feature to prevent you from leaving
their
> >> >sites. Instead, consider opening your form in a new window. That
window
> >> will
> >> >have no history; therefore, the Back button won't be active.
> >> >
> >> >
> >> >"Balaji" <webdev.@127.0.0.1> wrote in message
> >> >news:3ed72f01$1@tnews.web.devx.com...
> >> >>
> >> >> Hello Everybody,
> >> >> I would like anyone to help me. My problem is that i want to trap
the
> >> >event
> >> >> of Back Button in the browser to null, so that when i click it no
> >action
> >> >> takes place and i stay in the same page with the data
present.Actually
> >> i
> >> >> am in a condition that when i go back i lose all the data, so in
order
> >> to
> >> >> prevent this i want the action to be nullified. Also can i disable
> or
> >> hide
> >> >> this button on load of a particular jsp ?
> >> >> The same condition i have to apply on Back, Forward and Refresh
> >Buttons.
> >> >>
> >> >> Thanks in Advance Guys.
> >> >>
> >> >
> >> >
> >>
> >
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|