File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Dialog Box Refresh Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Dialog Box Refresh Problem" Watch "Dialog Box Refresh Problem" New topic

Dialog Box Refresh Problem

paul king

Joined: May 23, 2006
Posts: 12

I have a jsp which opens a modal dialog box using javascript, within that dialog box I have a button which opens a second modal dialog box.
This allows me to type in a message and save it. When I click save, it closes the dialog box, I then need the first dialog box to refresh.
I can't get it to do this.

I have tried window.location.reload(true) on the submit of the second dialog box (using AJAX) and window.location.reload(true) after the showModalDialog bit on the first dialog box but none of these work.

Can anyone help?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Moved to the HTML/Javascript forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Dialog Box Refresh Problem
It's not a secret anymore!