XML Server Getting Started    
      This window will not get active until user logs on ... 
      

   
   
   
   
 
On it's 
onLoad
 event window pops up 
/Examples/Tutorial/step6.jsp 
as a dialog box: 
        var isLogonOK = window.showModalDialog(dlgURL, dlgParm, dlgProps); 
This activates the dialog box populated 
step6.jsp 
and deactivates our window. In fact, so far our window has not been active 
at all.  The dialog properties   last argument of 
showModalDialog
 method   is set to size dialog box to 300 by 200 pixels, 
place it in the center of the screen and eliminate status line: 
        var dlgProps = "center:yes;dialogWidth:300px;dialogHeight:200px;status:no"; 
The boolean value returned by 
showModalDialog
 function is used to set the value of 
status
 to either  succeeded  or  failed : 
        var status = isLogonOK?"succeeded":"failed"; 
   
This assignment is not happening (flow of control does not come back to window::onLoad() function) until modal dialog is 
closed. Then window changes its appearance and becomes active. 
To illustrate the mechanism of passing parameters to dialog boxes we will enhance our example so that subsequent use of the 
logon window prompts user's ID as of the last successful logon. Specifically, upon successful login we will store that value 
in a 
cookie
 so that it will persist on user's computer. Accordingly, we will be reading this 
cookie
 and passing it's value as an 
argument to 
showModalDialog()
 function. 
 First, let's revise the dialog box scripting section 
(/Examples/Tutorial/step7.jsp
): 
 

 
  
  
    
Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates Web Design Templates Interland Web Hosting Cheap Web Hosting Java Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.