XML Server Getting Started    
        var dlgProps = "center:yes;dialogWidth:300px;dialogHeight:200px;status:no"; 
        var dlgURL = "/Examples/Tutorial/step7.jsp"; 
        var dlgParm = getCookie("userid"); 
        var isLogonOK = window.showModalDialog(dlgURL, dlgParm, dlgProps); 
        var status = isLogonOK?"suceeded":"failed"; 
        explanation.innerHTML = "Now that user logon " + status + " this window is active"; 
        inp_changeme.value = "You can type now"; 
As in the previous code snippet, we included reference to /xmlsp/js/system.js. This time around   to enable use of 
function. We read the 
 value (could be 
) and pass it as an argument to our dialog box. We could have passed any 
object, not only the string, performing: 
         .  .  .  .  .   .  .  .  .  .  .  .   
        var dlgURL = "/Examples/Tutorial/step7.jsp"; 
        var dlgParm = new Object(); 
        dlgParm.userid = getCookie("userid"); 
        dlgParm.date = new Date(); 
        var isLogonOK = window.showModalDialog(dlgURL, dlgParm, dlgProps); 
Then, inside step7.jsp, we could have had the following: 
  function window::onLoad() { 
     var argsObject = window.dialogArguments;  
     if (argsObject.userid != null) { 
           edt_userid.value = argsObject.userid; 
To see more detailed information of programming Dialog Boxes as well as Windows and Frames please visit MSDN Library 
on line: 
 Working with Windows, Frames and Dialog Boxes
 2000 2002 Computer Technology Inc. All rights reserved. 
Page 31 

J2EE Web Hosting Tundra XML Server Pages J2EE Hosting

TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.