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%28boolean%29>*(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 protected] 
>>> <mailto:[email protected]>> 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:%2B091%20-%20040%20-%2066846019>
>>>   XT:304
>>>   http://www.prithvisolutions.com
>>> 
>>>    _______________________________________________
>>>   Do not post admin requests to the list. They will be ignored.
>>>   Webobjects-dev mailing list      ([email protected]
>>>   <mailto:[email protected]>)
>>>   Help/Unsubscribe/Update your Subscription:
>>>   
>>> http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>> 
>>>   This email sent to [email protected] <mailto:[email protected]>
>>> 
>>> 
>> 
>> -- 
>> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>> 
>> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to [email protected]

;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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to