Re: Disable Back button in IE and Safari Browser
Re: Disable Back button in IE and Safari Browser
- Subject: Re: Disable Back button in IE and Safari Browser
- From: David LeBer <email@hidden>
- Date: Thu, 24 Feb 2011 10:54:38 -0500
On 2011-02-24, at 10:44 AM, Farrukh Ijaz wrote:
> Hi Pavan,
>
> What John has suggested is what you need to enable the client side cache so your javascript code could work. Using the window.history.go() and window.history.forward() will bring you back to the same page.
> However, I personally think it's not a good practice to implement such behaviour in your application. It's better you launch your page in a new browser window and hide the browser tool bar.
Or move everything to ajax requests. It's still nasty as a requirement though.
>
> Farrukh
>
> On 2011-02-24, at 6:31 PM, pavan.jayam wrote:
>
>> Thank you John.. i will try this...
>>
>> but what exactly i need is, the user should be in the same page, i dont want the user to move back.
>>
>>
>> John Huss wrote:
>>> Page caching versus regeneration is determined by:
>>>
>>> WOApplication.*setPageRefreshOnBacktrackEnabled <http://webobjects.mdimension.com/javadoc/WebObjects/5.4/com/webobjects/appserver/WOApplication.html#setPageRefreshOnBacktrackEnabled(boolean)>*(boolean aFlag)
>>>
>>> But I would suggest that breaking the back button is a very bad idea; it is a fundamental part of the browser.
>>>
>>> John
>>>
>>> On Thu, Feb 24, 2011 at 2:52 AM, pavan.jayam <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> Dear All,
>>>
>>> How to disable back button when user clicks browser back button,
>>>
>>> the formal way is "window.history.forward() and
>>> window.history.go()" are working with normal html pages... but
>>> when implemented with webobjects its giving "webpage is expired".
>>>
>>> can any one suggest on this.
>>>
>>> -- Thanks&Regards,
>>> *Pavan Jayam
>>> *Software Trainee
>>> *Prithvi Information Solutions Ltd*
>>> 10Q3A1, Cyber Towers
>>> HITEC City, Madhapur
>>> Hyderabad - 500 081
>>>
>>> Desk: +091 - 040 - 66846019 <tel:+091 - 040 - 66846019>
>>> XT:304
>>> http://www.prithvisolutions.com
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden
>>> <mailto:email@hidden>)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden <mailto:email@hidden>
>>>
>>>
>>
>> --
>> Thanks&Regards,
>> *Pavan Jayam
>> *Software Trainee
>> *Prithvi Information Solutions Ltd*
>> 10Q3A1, Cyber Towers
>> HITEC City, Madhapur
>> Hyderabad - 500 081
>>
>> Desk: +091 - 040 - 66846019 XT:304
>> http://www.prithvisolutions.com
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden