Guest
Welcome login


TIBCOmmunity > Products > General Interface > GI 3.2 to 3.7 Development > Conversations
Home   Members Communities
Conversations () Resources () Blogs ()
Announcement:

TIBCO Contributes General Interface to the Open Source Community by TIBCOmmunity Admin at May 31, 2010 12:00 AM

TIBCO, Dojo Foundation and SitePen Work Together To Drive Innovation in Application Development

http://www.tibco.com/company/news/releases/2009/press956.jsp

 

 

GI 3.2 to 3.7 Development

Up to Conversations in GI 3.2 to 3.7 Development

This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)

Clear browser history on OnLoad

Created on: Jun 19, 2009 2:03 PM

Is there a way to clear browser history on OnLoad , Actual requirement is to disable Back in the browser and since there is no way to do that.. I want to delete the browser history so we stay on the same page on clicking Back.

 

Thanks,

Swapna

Click to view r.koenig's profile Aficionado 232 posts since
Oct 17, 2008
1. Jun 22, 2009 6:42 AM in response to: Swapna Palagiri
Re: Clear browser history on OnLoad

You don't have access to browser functionaloty from script, good thing you have not.

 

One thing you could do is register a confirm function to the BEFOREUNLOAD event of GI. Then the user gets a confirm dialog whether to leave the page or not, like it is done in the GI IDE.

 

In your project settings "onLoad Script":

jsx3.gui.Event.subscribe(jsx3.gui.Event.BEFOREUNLOAD, checkExit);

 

In your code:

function checkExit() {

arguments[0].returnValue = 'your confirm message';

};



More Like This

  • Retrieving data ...