PDA

View Full Version : Window Widget IFRAMES History Issue



redphill
12-17-2009, 08:53 AM
1) Script Title:

Window Widget v1.1/Modal Window Widget

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:

I am using this window widget (modal) in an admin area of a web site to store a wizard using the IFRAME option. In any one user session the wizard could be accessed multiple times.

My issue/requirement is that on each call to the modal window I do not want the user to be able to go back (browser back button). i.e. Access the wizard in the modal window for the first time, fine, no browser back option. Complete the wizard and close the window. Access the wizard/modal window for the second time, which should be a fresh start for the wizard, but you can click on the browser back button and see the 'completed' page from the first call to the window/iframe which is very confusing for the user.

I have resolved this in IE by adding a workaround to the onclose handler: location.reload(true);

... but this does not work in Firefox

I would be most grateful for any help you could provide

Thanks

Phill