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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem when refreshing a ModalDialog

Status
Not open for further replies.

FadeOut

Programmer
Mar 27, 2004
14
0
0
CA
I got a php page loaded this way :

var newcolor = showModalDialog("index.php?directory=." ,test, "resizable: no; help: no; status: no; scroll: no;");

then in the index.php i got this code
function change_dir(newdirname)
{
document.location = "index.php?directory=" + newdirname;
}

when an event execute this code it opens a new window. Is there a way to stay in the dialog???
 
Yes, have the modal dialog open up a blank page with an iframe that contains all your content. That's the only way I know to refresh a modal dialog.

-kaht

banghead.gif
 
One way is to put your page in an IFRAME within the modal window. Then refresh only the IFRAME. I can't think of any other way to do it.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Thanx, I'll get familiarized with those IFRAME... It sounds good to me :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top