Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Dialog window

Status
Not open for further replies.

790213

Programmer
Sep 22, 2003
50
ZA
I need to know how to refresh a dialog window. I'm creating the dialog with this function:

function showModalDialogWindow(sURL,sCaption)
{

lookUpArguments.sCaption = sCaption;

var oDialogWindow = showModalDialog(sURL, lookUpArguments, "status:no; resizable:no; center:yes; unadorned:eek:ff; help:no; dialogWidth:350pt; dialogHeight:100pt;")

if (oDialogWindow == -1 || oDialogWindow == null || oDialogWindow == false)
{
return oDialogWindow;
}
else
{
return oDialogWindow;
}
}
 
so what do u mean by refresh? is t displaying old info? u have to clear history and offline files for that...

Known is handfull, Unknown is worldfull
 
I want to refresh the page as is. Like location.reload does for a normal page.
 
that ought to work, what r u changing by the way? is the dialog page a HTML or ASP???

Known is handfull, Unknown is worldfull
 
It's ASP. I'm opening annother modal dialog where I do changes. Once I get back to the parent dialog I want to refresh/reload it so it shows the changed values in a list/table. This is where the problem comes in. I can't seem to do a location.reload on a Modal Dialog.

I want the stored procedures in the load to be re-executed so I can get the up to date XML.

Do you know of annother way?
 
whoa, u r opening a modal window using a modal window? i dont think u can refresh a modal window...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top