Click here to Skip to main content
16,011,868 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: SSL Certs on web farms Pin
Nino_127-Jun-03 13:57
Nino_127-Jun-03 13:57 
GeneralRe: SSL Certs on web farms Pin
Megan Forbes28-Jun-03 21:31
Megan Forbes28-Jun-03 21:31 
GeneralRe: SSL Certs on web farms Pin
Nino_129-Jun-03 7:30
Nino_129-Jun-03 7:30 
GeneralFrames and visited links. Pin
Rocky Moore21-Jun-03 3:41
Rocky Moore21-Jun-03 3:41 
GeneralBe gone, horizontal scrollbar! Pin
Taka Muraoka20-Jun-03 17:17
Taka Muraoka20-Jun-03 17:17 
GeneralRe: Be gone, horizontal scrollbar! Pin
James T. Johnson20-Jun-03 17:57
James T. Johnson20-Jun-03 17:57 
QuestionIs it possible to reload page in ModalDialog window? Pin
Thomas W20-Jun-03 3:18
Thomas W20-Jun-03 3:18 
AnswerRe: Is it possible to reload page in ModalDialog window? Pin
basementman20-Jun-03 5:21
basementman20-Jun-03 5:21 
The only way to reload, navigate or do form posts in a modal dialog is to create a dialog that serves as a "host container" for the actual page, which resides in an iframe. In the following example, just replace the iframe src tag with your page url:

<html>
<head>
<title>Multi Select Lookup</title>
<SCRIPT LANGUAGE=javascript>
<!--
var g_iInterval = 0;
var g_iLoop = 0;

function window_onload()
{
  document.all["LookupPanel"].style.display = "";
  document.all["LoadingMsg"].style.display = "none";

  window_onresize();
  window.returnValue = "";  // default to empty string
  g_iInterval = window.setInterval("CheckForSave()",200);
}


function CheckForSave() {
if (window.returnValue.substr(0,1) == "R")
  {
    g_iLoop++;
    if (g_iLoop > 2)
      {
        window.clearInterval(g_iInterval);
        window.close();
      }
  }
}


function window_onresize() {
var oLP = document.all["LookupPanel"];
oLP.style.posHeight = document.body.offsetHeight;
oLP.style.posWidth = document.body.offsetWidth;
}

//-->
</SCRIPT>
</HEAD>
<BODY background="::{ImageDir}/body_back.gif" bottomMargin=0 leftMargin=0 rightMargin=0 topMargin=0 LANGUAGE=javascript onload="return window_onload()" onresize="return window_onresize()">
<span id=Retval style="display: none"></span>
<SPAN id=LoadingMsg style="z-index: 0; position: absolute; left: 0; top: 100; width: 100%; text-align: center">Loading...</SPAN>
<IFRAME id=LookupPanel src="!!YOUR URL HERE!!" marginheight=0 marginwidth=0 hspace=0 frameborder=1 style="HEIGHT: 10px; WIDTH: 10px; Z-INDEX=10; DISPLAY: none" vspace=0></IFRAME>


Then, in your page, when you need to close it (or doing a form post), simply set the following:

function OnCancelButtonClicked() {
window.parent.close();
}

function FormOnSubmit() {
// close parent dlg...
window.parent.returnValue = "R";
}


Using this as a foundation, we were able to develop true multipage Wizard dialogs and Tabbed dialogs.

 onwards and upwards... 
GeneralThanks basementman. Pin
Thomas W22-Jun-03 20:57
Thomas W22-Jun-03 20:57 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
theJazzyBrain23-Jun-03 4:44
theJazzyBrain23-Jun-03 4:44 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
basementman23-Jun-03 4:48
basementman23-Jun-03 4:48 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
theJazzyBrain23-Jun-03 4:52
theJazzyBrain23-Jun-03 4:52 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
basementman23-Jun-03 5:00
basementman23-Jun-03 5:00 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
theJazzyBrain23-Jun-03 5:09
theJazzyBrain23-Jun-03 5:09 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
basementman23-Jun-03 6:03
basementman23-Jun-03 6:03 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
theJazzyBrain23-Jun-03 7:58
theJazzyBrain23-Jun-03 7:58 
GeneralRe: Is it possible to reload page in ModalDialog window? Pin
basementman23-Jun-03 8:03
basementman23-Jun-03 8:03 
GeneralNice job. Pin
Thomas W24-Jun-03 2:16
Thomas W24-Jun-03 2:16 
QuestionIFrame, when did that happen? Pin
Rocky Moore19-Jun-03 22:56
Rocky Moore19-Jun-03 22:56 
AnswerRe: IFrame, when did that happen? Pin
theJazzyBrain23-Jun-03 4:58
theJazzyBrain23-Jun-03 4:58 
GeneralCreation date of uploaded file Pin
ProffK19-Jun-03 2:12
ProffK19-Jun-03 2:12 
GeneralRe: Creation date of uploaded file Pin
Anonymously19-Jun-03 2:36
Anonymously19-Jun-03 2:36 
Generalcompressed exel in asp Pin
Member 44448719-Jun-03 0:58
Member 44448719-Jun-03 0:58 
GeneralHelp me with Perl! Thanks. Pin
lnong18-Jun-03 12:52
lnong18-Jun-03 12:52 
Generalno download Pin
Brakanjan17-Jun-03 1:19
Brakanjan17-Jun-03 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.