Relocate Server Legacy ASP

Last post 11-10-2009 4:43 AM by NelsonM. 2 replies.

Sort Posts:

  • Relocate Server Legacy ASP

    11-04-2009, 10:03 AM
    • Member
      1 point Member
    • NelsonM
    • Member since 11-04-2009, 8:55 AM
    • Posts 2

    Hello, Im a complete novice and would like some pointers.

    My company are running an application on a closed network on a server that is about to be scrapped (but still currently works fine).  The applications (SQL 2000 db with legacy asp front end) have both been copied onto a local server (using an ISS wizard), the SQL works fine through enterprise manager, but when you attempt to access the front end using IE, the following Error Messages are displayed; 

    • server-side error
    • 500 internal Server Error
    • cCommandMarshaller.execute
    • cAbstractDCProxy.call
    • mainConsoleUI.logon
    • mainConsoleUI.Initialise
    • mainConsoleUI.window_onload 

    I have checked the server settings (currently running on Win 2000) and everything looks good in the ISS settings.  

    My predecessor has pointed at a “getServerVariable.asp” file held in a getNTLogon folder and thinks this is the problem; I have included the text below.  Any help will be greatly appreciated. 

    getServerVariable text

    <%@ Language=JavaScript%>

    <%
    Response.Buffer = true;

    var sReturnXML;

    sReturnXML = '<?xml version="1.0"?><result>' + Request.ServerVariables(Request.QueryString("variableName")) + '</result>';

    Response.ContentType = "text/xml";
    Response.Write (sReturnXML);
    %>

    mainConsoleUI2 Text

    <html>
    <head id="theHead">

    <title>JEP Main Console</title>

    <script type="text/javascript" src="../../common/cComponentLoader.js"></script>

    <style>
    #contextHelpPane P
    {
     margin: 0;
    }

    #generalHelpPane P
    {
     margin: 0;
    }
    </style>

    <script type="text/javascript">

    var uiName = "mainConsoleUI";
    var sessionAlias = "jepMain";
    var sessionVersion = "v1";
    var hostFolderName = "main";

    var oLoader = new cComponentLoader();

    oLoader.loadStyleSheets(uiName);

    var oSession = null;  
    var uiTargets = {};

    function onItemSelectedFn()
    {
        //what to do about available actions based on selected item accessed from menu??
     var oSelectedItem = webFXTreeHandler.selected;
     if (isVisible(contextHelpPane))
     {
      refreshHelpPane(oSelectedItem);
     }
    }
           
    function getExplorerNameForSelectedItem (oSelectedItem)
    {
     //a bit of a cludge but it works

     var el = document.getElementById(oSelectedItem.id); 
     var explorerName = null;
     
     while (el.parentNode)
     {
      if (el.id.indexOf("ExplorerPane") != -1)
      {
       explorerName = el.id.split("Pane")[0];
       break;
      }
      el = el.parentNode;
     } 
     return explorerName;
    }

    function assignEventHandlers ()
    {
     document.getElementById("menuRoot1").onbeforemousedown = menuRoot1_onbeforemousedown;
    }

    function menuRoot1_onbeforemousedown()
    {
     var elActionMenu;
     var sourceEl;
     var bIncludeContext = true;

     sourceEl = window.event.srcElement; 
      
     if (webFXTreeHandler.selected)
     {
      var oSelectedItem = webFXTreeHandler.selected;
      
      //provided its not the help explorer which should
      //just be responding via default actions, ie no context menu
      if (getExplorerNameForSelectedItem(oSelectedItem) == 'helpExplorer')
      {
       bIncludeContext = false;
      }
        
      //if in list then prevent showing context menu
      var sFoo = "-accountDetails-contacts-changeLogSummary-dialogHelpItems-explorerHelpItems-";
      if (sFoo.indexOf("-" + oSelectedItem.subType + "-") != -1)
      {
       bIncludeContext = false;
      }
     }
     else
     {
      bIncludeContext = false;  
     }     
       
     elActionMenu = createActionMainMenuElement(webFXTreeHandler.selected,bIncludeContext);
     sourceEl.menu = "actionContextMenu";

    }

    function refreshTreeNode (oSelectedItem)
    {
     try
     {
     
      if (!oSelectedItem) {return;}
     
      //xTree has a bug when you try and refresh the root tree node - it's now patched

      //for a non-root node reload it if possible
      //or its parent or its parent's parent
      if (oSelectedItem.reload)
      {
       oSelectedItem.reload()   
      }
      else if (oSelectedItem.parentNode && oSelectedItem.parentNode.reload)
      {
       oSelectedItem.parentNode.reload();
      }
      else if (oSelectedItem.parentNode.parentNode && oSelectedItem.parentNode.parentNode.reload)
      {
       oSelectedItem.parentNode.parentNode.reload();
      }
      else
      {
       return;
      }

     }
     catch (e)
     {
     }
    }

    function explorerBody_oncontextmenu()
    {
     var ev;
     var el;
     
     ev = window.event;
     el = ev.srcElement;
     
     if (el.id && (/-icon/.test(el.id) || /-anchor/.test(el.id)))
     {
      var oSelectedItem = webFXTreeHandler.selected;
      
      //provided its not the help explorer which should
      //just be responding via default actions, ie no context menu
      if (getExplorerNameForSelectedItem(oSelectedItem) != 'helpExplorer')
      {  
       //provided not in list then go ahead and build and show context menu
       var sFoo = "-accountDetails-contacts-changeLogSummary-dialogHelpItems-explorerHelpItems-";
       if (sFoo.indexOf("-" + oSelectedItem.subType + "-") == -1)
       {
        buildAndShowContextMenu(oSelectedItem);
       }
      }  
     }
     
     ev.cancelBubble = true;
     ev.returnValue = false; 
          
     oSelectedItem = null;
     el = null;
     ev = null;
    }

    function clearHelpPane (helpPaneId)
    {
     document.getElementById(helpPaneId + "Content").innerHTML = "";
     document.getElementById(helpPaneId).itemSubTypeAtLastRefresh = null;
     return;
    }
     
    function refreshHelpPane(oSelectedItem)
    {
     var helpNarrative = "";
     var key;

     if (!oSelectedItem) {return;}
     
     var explorerNameForSelectedItem = getExplorerNameForSelectedItem(oSelectedItem);

     //if refreshed but explorer for currently selected item not visible
     //then flush out explorer context help pane
     if (explorerNameForSelectedItem != "helpExplorer" && !isVisible(document.getElementById(explorerNameForSelectedItem + 'Pane')))
     {
      clearHelpPane("contextHelpPane"); 
     }
     
     if (explorerNameForSelectedItem == "helpExplorer")
     {
      key = oSelectedItem.subType + oSelectedItem.contextId;
     }
     else
     {
      key = oSelectedItem.subType; 
     }

     //don't bother refreshing the pane unless the item has changed  
     if (explorerNameForSelectedItem == "helpExplorer" && generalHelpPane.itemSubTypeAtLastRefresh && generalHelpPane.itemSubTypeAtLastRefresh == key)
     {return;}

     if (explorerNameForSelectedItem != "helpExplorer" && contextHelpPane.itemSubTypeAtLastRefresh && contextHelpPane.itemSubTypeAtLastRefresh == key)
     {return;}
      
     //if the help narrative is not already cached then get it
     if (!oSession.cachedExplorerHelp[key])
     {
      var oHelpItemUC = new cHelpItemUC(oSession,null);
      try
      {
       if (explorerNameForSelectedItem == "helpExplorer")
       {
        oHelpItemUC.load(oSelectedItem.contextId,'');
       }
       else
       {
        oHelpItemUC.load('',oSelectedItem.subType);
       }
       helpNarrative = oHelpItemUC.helpNarrative.getValue();
       oHelpItemUC = null; 
      }
      catch (e)
      {
       helpNarrative = "";
      }
        
      //cache the help narrative
      oSession.cachedExplorerHelp[key] = helpNarrative;
     }

     //refresh the correct help pane
     if (explorerNameForSelectedItem == "helpExplorer")
     {
      generalHelpPaneContent.innerHTML = oSession.cachedExplorerHelp[key];
      generalHelpPane.itemSubTypeAtLastRefresh = key;
     }
     else
     {
      contextHelpPaneContent.innerHTML = oSession.cachedExplorerHelp[key];
      contextHelpPane.itemSubTypeAtLastRefresh = key;
     }
    }

    function showDialog(urlDialog,oSession,sAction)

     //passing 'arguments' will ensure that all basic parameters and any
     //additional parameters received are forwarded to the specific dialog

        var oDialogResults = window.showModalDialog(urlDialog,arguments,'status: 0; help: 0;');

     return oDialogResults;   
    }

    function showTechnicalSupport()
    {
     var width = 300;
     var height = 170;
     var features = "";
     
     features += "width=" + width,
     features += ",height=" + height;
      
     features += ",left=" + getLeftForCentredWindow(width);
     features += ",top=" + getTopForCentredWindow(height);
      
     var win = window.open("images/fly/fly.htm","win",features);
    }

    function showAboutJEP()
    {
     var bodyStyle = "background: buttonface;font:menu;";
     var content = "";
     
     content += "<strong>About JEP</strong>"
     content += "<br><br>removed";     
     content += "<ul>";
     content += "<li>Removed</li>";
     content += "</ul>";

     content += "<br><br><br><br><br><br><a href='images/xtra/cluster.htm'>More</a>";
     
     var width = 300;
     var height = 300;
     var features = "";
     
     features += "width=" + width,
     features += ",height=" + height;
     
     features += ",left=" + getLeftForCentredWindow(width);
     features += ",top=" + getTopForCentredWindow(height);
     
     createAndShowWindow ("About JEP",content,features,bodyStyle);
    }

    function getLeftForCentredWindow(width)
    {
     if (window.screen)
     {
      var w = screen.availWidth - 10;
      var x = (w - width)/2;
      return x;
     }
     return 0;
    }

    function getTopForCentredWindow(height)
    {
     if (window.screen)
     {
      var h = screen.availHeight - 30;
      var y = (h - height)/2;
      return y;
     }
     return 0;
    }

    function createAndShowWindow (title,content,features,bodyStyle)
    {
     var win = window.open("","win",features);
     win.document.open("text/html","replace");
     win.document.write("<html><title>"+title+"</title><body style='"+bodyStyle+"'>"+content+"</body></html>");
     win.document.close();
    }

    //workaround to ensure that when main console window
    //gets focus after modal dialog is closed (when invoked from right mouse click context menu)
    //the originally selected explorer item regains focus correctly
    //and maintains its correct visual state
    window.onfocus = function () {
            try
            {
             if (webFXTreeHandler && webFXTreeHandler.selected)
             {
              document.getElementById(webFXTreeHandler.selected.id + '-anchor').focus()
             }
            }
            catch (e)
            {
            }
            }

    function window_oncontextmenu ()
    {
      window.event.returnValue = false;
      window.event.cancelBubble = true;
    }

    function logon(sessionAlias,sessionVersion,hostFolderName)

        //-meta-mainConsoleUI.logon-meta- 
     
     try
     {
      var oSession = null;
      var oXmlhttp;
      var sTarget;
      var oRoot;
      var requestorUid;
      var pathToAppRoot;
      var applicationRoot;
      var mode;
     
      pathToAppRoot = window.location.pathname.toLowerCase().split("/" + hostFolderName.toLowerCase() + "/")[0];
      applicationRoot = "http://" + window.location.hostname + "/" + pathToAppRoot;

      if (window.location.hostname == "localhost")
      {
       requestorUid = "";
       mode = "off-line";
       
      }
      else
      { 
       sTarget = "../../../getNTLogon/getServerVariable.asp?variableName=AUTH_USER";
       oXmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      
       oXmlhttp.Open("POST", sTarget,false);
       oXmlhttp.Send();
       oRoot = oXmlhttp.responseXML.documentElement;
       if (oRoot.text.length <= 0) {throw new Error("Unable to discover user id")};
       requestorUid = oRoot.text.split("\\")[1];
       mode = "on-line";
       
      }

      oSession = new cAppSessionUC(applicationRoot,requestorUid,sessionAlias,sessionVersion,mode);

      window.document.title += " (" + mode + " mode)";
      window.document.title += " - Logged on via account : " + oSession.requestorUid.getValue();
      
      //extend session to include cache for explorer help
      oSession["cachedExplorerHelp"] = {};


    //Test for uid and roles granted//
    /*

    alert("Logging on as: " + requestorUid);

    alert(oSession.roleGrantAliasList.getValue());
    */
     
      return oSession;    
     }
     catch (e)
     {
      
      throw (e + "\n" + arguments.callee.toString().split("-meta-")[1]);
     }
    }

    function delayedInitialisation()
    {
     intialiseTrees();
     assignEventHandlers();
     
     setStateOfControls();
    }

    function handleError(e)
    {
     var sMessage = "It is not possible to continue with the application session. \n"
         + "Details of the error that has occurred are given below. \n \n"
         + "The next dialog will ask whether you agree to close the window. \n"
         + "Please answer yes and contact you local administrator. \n \n"     
         + e

     alert(sMessage);
     closeThisWindow();
    }

    function mainconsole_onclose()
    {
     oSession.stopAppSession();
    }


    function initialise ()
    {
        //-meta-mainConsoleUI.initialise-meta-
        try
        {  
        window.document.oncontextmenu = window_oncontextmenu;

     //detect JEP shutdown
     window.onunload = mainconsole_onclose;
       
     accountsExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     helpMaintenanceExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     reportsExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     awarenessExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     userAccountExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);  
     referenceDataExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     trackingExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     helpExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
     orgUnitExplorerBody.attachEvent("oncontextmenu", explorerBody_oncontextmenu);
         
        positionElements();
         
     oSession = logon(sessionAlias,sessionVersion,hostFolderName);
      
     initialiseUiTargets();

        //call delayed init
        setTimeout("delayedInitialisation()",200); 
        }
        catch (e)
        {
      throw (e + "\n" + arguments.callee.toString().split("-meta-")[1]);
        } 
    }

    function window_onload ()
    {
        //-meta-mainConsoleUI.window_onload-meta-
        try
        {
            initialise();
        }
        catch (e)
        {
            handleError(e + "\n" + arguments.callee.toString().split("-meta-")[1]);
        }
    }

    function doDefaultActionForItem(oSelectedItem)
    {

     //ought to decouple item, action and target but hey ho
     if(getExplorerNameForSelectedItem(oSelectedItem) == "helpExplorer")
     {
      refreshHelpPane(oSelectedItem)
     }
     else if (oSelectedItem.subType+"UI" in uiTargets)
     {
      var oResults = showDialog(uiTargets[oSelectedItem.subType+"UI"],oSession,"open",oSelectedItem.contextId);
      if (oResults && oResults.hasDialogPersisted)
      {
       refreshTreeNode(oSelectedItem.parentNode);
      }
     }
     // need xtra to handle left-click on standard report item
     // because subtype = "standardReport" which doesn't give UI target
     else if (oSelectedItem.subType == "standardReport")// && oSelectedItem.standardReportKey+"UI" in uiTargets)
     {
      // open form to collect parameters  
      var oParams = showDialog(uiTargets["paramGrabberUI"],oSession,"open",oSelectedItem.standardReportKey,oSelectedItem.text);

      if(oParams)
      {
       // open appropriate Report UI and pass it the parameters
       showDialog(uiTargets[oSelectedItem.standardReportKey+"UI"],oSession,"open",oSelectedItem.standardReportKey,oParams);
      }
     }
    }

    function showExplorerPane (explorerPane)
    {
     setVisibility (accountsExplorerPane, false, true);
     setVisibility (helpMaintenanceExplorerPane, false, true);
     setVisibility (reportsExplorerPane, false, true)
     setVisibility (awarenessExplorerPane, false, true)
     setVisibility (userAccountExplorerPane, false, true)
     setVisibility (referenceDataExplorerPane, false, true)
     setVisibility (trackingExplorerPane, false, true)
     setVisibility (helpExplorerPane, false, true) 
     setVisibility (generalExplorerPane, false, true) 
     setVisibility (introAndNewsPane, false, true)
     setVisibility (orgUnitExplorerPane, false, true)
      
     setVisibility (explorerPane, true, true);
     
     if (explorerPane != helpExplorerPane)
     {
      clearHelpPane("contextHelpPane")   
     }
    }

    function addToFavorites()
    {
     window.external.AddFavorite(window.location.href,window.document.title);
    }

    function closeThisWindow()
    {
        //do stuff to tidy up if necessary
        //
        window.close();
    }

    var oAccountsExplorer;

    var oHelpMaintenanceExplorer;
    var oReportsExplorer;
    var oAwarenessExplorer;
    var oUserAccountExplorer;
    var oReferenceDataExplorer;
    var oTrackingExplorer;
    var oHelpExplorer;
    var oOrgUnitExplorer;

    var oExplorers;


    function intialiseTrees()
    {
     webFXTreeConfig.rootIcon  = "../../images/globe.gif";
     webFXTreeConfig.openRootIcon = "../../images/globe.gif";
     webFXTreeConfig.folderIcon  = "../../UILib/Widgets/images/folder.png";
     webFXTreeConfig.openFolderIcon = "../../UILib/Widgets/images/openfolder.png";
     webFXTreeConfig.fileIcon  = "../../UILib/Widgets/images/file.png";
     webFXTreeConfig.lMinusIcon  = "../../UILib/Widgets/images/Lminus.png";
     webFXTreeConfig.lPlusIcon  = "../../UILib/Widgets/images/Lplus.png";
     webFXTreeConfig.tMinusIcon  = "../../UILib/Widgets/images/Tminus.png";
     webFXTreeConfig.tPlusIcon  = "../../UILib/Widgets/images/Tplus.png";
     webFXTreeConfig.iIcon  = "../../UILib/Widgets/images/I.png";
     webFXTreeConfig.lIcon  = "../../UILib/Widgets/images/L.png";
     webFXTreeConfig.tIcon  = "../../UILib/Widgets/images/T.png";
     webFXTreeConfig.blankIcon  = "../../UILib/Widgets/images/blank.png";

     webFXTreeConfig.defaultAction  = "javascript: window.doDefaultActionForItem(webFXTreeHandler.selected); void(0);";

     webFXTreeHandler.onSelect = onItemSelectedFn;

     oAccountsExplorer = new WebFXLoadTree("Accounts Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreAccounts&sessionId="+oSession.sessionId.getValue());
     oAccountsExplorer["subType"] = "accountsExplorer";

     oHelpMaintenanceExplorer = new WebFXLoadTree("Help Maintenance Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreHelpItemGroups");
     oReportsExplorer = new WebFXLoadTree("Reports Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreStandardReportGroups&sessionId=1");
     oAwarenessExplorer = new WebFXLoadTree("Training and Awareness Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreLinkItems");
     oUserAccountExplorer = new WebFXLoadTree("User Account Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreUserAccountGroups&sessionId=1");
     oReferenceDataExplorer = new WebFXLoadTree("Reference Data Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreReferenceDataDomainGroups&sessionId=1");
     //oTrackingExplorer = new WebFXLoadTree("Correspondence Tracking Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreZones&zoneName=accounts");
     oHelpExplorer = new WebFXLoadTree("On-line Help Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreGeneralHelpItems&contextId=-1");
     oOrgUnitExplorer = new WebFXLoadTree("Org Unit Explorer","../../main/DC/webServerMutant/stub/treeExplorerDC.asp?methodName=exploreAllOrgUnitsGroups");

     oExplorers =
     {
      accountsExplorer : oAccountsExplorer,
      helpMaintenanceExplorer : oHelpMaintenanceExplorer,
      reportsExplorer : oReportsExplorer,
      awarenessExplorer : oAwarenessExplorer,
      userAccountExplorer : oUserAccountExplorer,
      referenceDataExplorer : oReferenceDataExplorer,
      trackingExplorer : oTrackingExplorer,
      helpExplorer : oHelpExplorer,
      orgUnitExplorer : oOrgUnitExplorer
     }
     
     accountsExplorerBody.innerHTML = oAccountsExplorer.toString();
     helpMaintenanceExplorerBody.innerHTML = oHelpMaintenanceExplorer.toString(); 
     reportsExplorerBody.innerHTML = oReportsExplorer.toString();
     awarenessExplorerBody.innerHTML = oAwarenessExplorer.toString();
     userAccountExplorerBody.innerHTML = oUserAccountExplorer.toString();
     referenceDataExplorerBody.innerHTML = oReferenceDataExplorer.toString();
     //trackingExplorerBody.innerHTML = oTrackingExplorer.toString();
     helpExplorerBody.innerHTML = oHelpExplorer.toString();
     orgUnitExplorerBody.innerHTML = oOrgUnitExplorer.toString();
    }

    //assign onload handler via script to avoid having
    //to embed try-catch block in onload attribute of body
    window.onload = window_onload;

    //window.onunload = closeThisWindow;


    function launchInstaller()
    {
        var uiToShow = uiTargets["jepInstallerUI"];
     window.open(uiToShow);
    }

    function launchDownload()
    {
     var hintText = "Select the Draft Audit Tasks you wish to download."
      + "\nYour choice is restricted to tasks which do not yet have any "
      + "Audit Aspect Results recorded against them.";

     var searchName = "searchDownloadableDraftAuditTasks";

     //single select
     var oResults = showDialog(uiTargets["downloadSelectorUI"],oSession,"singleSelect",searchName,hintText);

     if (oResults && oResults.selectedItems && oResults.selectedItems != '')
     {
      //single select for download so just on auditTaskId and its respectiv accountId to extract
      var oXmlDom = XMLDocFactory.create();
      oXmlDom.loadXML(oResults.selectedItems);
      
      var oNodeList = oXmlDom.getElementsByTagName("auditTaskId");
      var auditTaskId = oNodeList.item(0).firstChild.nodeValue;
      
      var oNodeList = oXmlDom.getElementsByTagName("accountId");
      var accountId = oNodeList.item(0).firstChild.nodeValue;
      
      var oDownloadUploadHelperUC = new cDownloadUploadHelperUC(oSession);    
      oDownloadUploadHelperUC.pullAuditTaskDownload({name : "auditTaskId", value : auditTaskId},{name : "accountId", value : accountId}); 
      
      //force account into favorites at root ie -1
      var oHelper = new cAccountWsItemsHelperUC(oSession);
      oHelper.addAccountWsItems({name:"_id",value: "-1"},{name: "list", value : accountId});

      oDownloadUploadHelperUC = null;
      oHelper = null;
     }
    }

    function launchUpload()
    {
     var hintText = "Select the Audit Task you wish to upload.";
     var searchName = "searchUploadableAuditTasks";

     //single select
     var oResults = showDialog(uiTargets["downloadSelectorUI"],oSession,"singleSelect",searchName,hintText);

     if (oResults && oResults.selectedItems && oResults.selectedItems != '')
     {
      //single select for upload so just on auditTaskId and its respective accountId to extract
      var oXmlDom = XMLDocFactory.create();
      oXmlDom.loadXML(oResults.selectedItems);
      
      var oNodeList = oXmlDom.getElementsByTagName("auditTaskId");
      var auditTaskId = oNodeList.item(0).firstChild.nodeValue;
      
      var oNodeList = oXmlDom.getElementsByTagName("accountId");
      var accountId = oNodeList.item(0).firstChild.nodeValue;
      
      var oDownloadUploadHelperUC = new cDownloadUploadHelperUC(oSession);    
      oDownloadUploadHelperUC.pushAuditTaskUpload({name : "auditTaskId", value : auditTaskId},{name : "accountId", value : accountId}); 
      
      oDownloadUploadHelperUC = null;
      oHelper = null;
     }
    }

    function launchJepUsageDaily()
    {
     showDialog(uiTargets["jepUsageDailyUI"], oSession, "open");
    }

    function launchPreAuditBriefEditor()
    {
     showDialog(uiTargets["preAuditBriefUI"], oSession, "open", "-1");
    }

    function setStateOfControls()
    {
     //consider implications of off-line mode when adding new scenarios to this
     
     if (oSession.hasRoleIn("applicationInstaller") && oSession.mode != "off-line")
     {
      cbInstall.disabled = false;
     }
     if (oSession.mode == "off-line")
     {
      cbDownload.disabled = false;
     }
     if (oSession.mode == "off-line")
     {
      cbUpload.disabled = false;
     }
     if (oSession.hasRoleIn("jepReporter") && oSession.mode != "off-line")
     {
      // make up role/s for reporters later
      // definitely don't want people running reports when offline
      cbReports.disabled = false;
     }
     if (oSession.hasRoleIn("applicationAdmin") && oSession.mode != "off-line")
     {
      cbJepUsageDaily.disabled = false;
     }
     if (oSession.hasRoleIn("applicationAdmin"))
     {
      cbUserAccountMgr.disabled = false;
      cmbUserAccountMgr.disabled = false;
      cbPabEditor.disabled = false;
     }
    }

    </script>
    </head>

    <body style="background: buttonface;" scroll="no" >

    <script type="text/javascript">

     oLoader.loadBaseClasses();
     oLoader.loadScripts(uiName);
     oLoader = null;
    </script>

    <div id="bodyDiv" style="position: absolute; border: none; background: buttonface; overflow: hidden; scroll: none;" onResize="javascript: positionElements();">

    <!-- outlook bar stuff -->

     <div id="coolOLBar1" borderStyle="2" width="100px" height="400px">
      <div id="coolOLBarContainer1" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton1"
        >
         <span>Main Applications</span>
       </div>
       <div id="coolOLBarButtonContainer1">
        <div></div>
        <div id="cbAccounts" title="Accounts" onclick="javascript: showExplorerPane(accountsExplorerPane);">
          <img src="../../images/oe_outlooktoday.gif" width="33" height="33"><br>Accounts
        </div>
        <!--
        <div id="cb2" title="Audit Tasks" onclick="javascript: void(0);">
          <img src="../../images/oe_inbox.gif" width="33" height="33"><br>Audit Tasks
        </div>
        -->
        <div id="cbReports" disabled title="Reports" onclick="javascript: showExplorerPane(reportsExplorerPane);">
          <img src="../../images/reports.gif" width="33" height="33"><br>Reports
        </div>
        <div id="cbCorrespondence" disabled title="Correspondence Tracking" onclick="javascript: showExplorerPane(trackingExplorerPane);">
          <img src="../../images/oe_calendar.gif" width="33" height="33"><br> Correspondence Tracking
        </div>
        <div id="cbOrgUnits" title="Org Units" onclick="javascript: showExplorerPane(orgUnitExplorerPane);">
          <img src="../../images/oe_outlooktoday.gif" width="33" height="33"><br>Org Units
        </div>
       </div>
      </div>

      <div id="coolOLBarContainer2" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton2"
        >
         <span>Offline Utilities</span>
       </div>
       <div id="coolOLBarButtonContainer2">
        <div></div>
        <div id="cbInstall" disabled title="Install In-Field Application" onclick="javascript: launchInstaller();">
          <img src="../../images/oe_mycomp.gif" width="33" height="33"><br> Install In-Field Application
        </div>
        <div></div>
        <div id="cbDownload" disabled title="Download Draft Audit Task" onclick="javascript: launchDownload();">
          <img src="../../images/oe_mycomp.gif" width="33" height="33"><br> Download Draft Audit Task
        </div>
        <div></div>
        <div id="cbUpload" disabled title="Upload Audit Task Results" onclick="javascript: launchUpload();">
          <img src="../../images/oe_mycomp.gif" width="33" height="33"><br> Upload Audit Task Results
        </div>
       </div>
      </div>

      <div id="coolOLBarContainer3" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton3"
        >
         <span>Admin Tools</span>
       </div>
       <div id="coolOLBarButtonContainer3">
        <div></div>
        <div id="cbUserAccountMgr" disabled title="User Account Manager" onclick="javascript: showExplorerPane(userAccountExplorerPane);">
          <img src="../../images/oe_tasks.gif" width="33" height="33"><br>User Account Manager
        </div>
        <div id="cbJepUsageDaily" disabled title="JEP Daily Usage" onclick="javascript: launchJepUsageDaily();">
          <img src="../../images/reports.gif" width="33" height="33"><br>JEP Daily Usage
        </div>
        <div id="cbServiceMgr" disabled title="Service Manager" onclick="javascript: showExplorerPane(generalExplorerPane);">
          <img src="../../images/oe_drafts.gif" width="33" height="33"><br>Service Manager
        </div>
        <div id="cbReferenceDataMgr" disabled title="Reference Data Manager" onclick="javascript: showExplorerPane(referenceDataExplorerPane);">
          <img src="../../images/oe_mydoc.gif" width="33" height="33"><br>Reference Data Manager
        </div>
        <div id="cbHelpMgr" title="Help Manager" onclick="javascript: showExplorerPane(helpMaintenanceExplorerPane);">
          <img src="../../images/oe_journal1.gif" width="33" height="33"><br>Help Manager
        </div>
    <div id="cbPabEditor" disabled title="Edit Pre Audit Brief Template" onclick="javascript: launchPreAuditBriefEditor();">
    <img src="../../images/oe_notes.gif" width="33" height="33"><br>Edit Pre Audit Brief Template
    </div> 
       </div>
      </div>

      <div id="coolOLBarContainer4" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton4"
        class="coolOLBarContainerButton">
        <span>Planning</span>
       </div>
       <div id="coolOLBarButtonContainer4">
        <div></div>
    <!--
        <div id="cbCalendar" disabled title="4 yr Calendar" onclick="javascript: void(0);">
          <img src="../../images/oe_calendar.gif" width="33" height="33"><br>Calendar
        </div>
        <div id="cbRefCategories" disabled title="Current REF Categories" onclick="javascript: void(0);">
          <img src="../../images/oe_mydoc.gif" width="33" height="33"><br>Current REF Categories
        </div>
    -->
       </div>
      </div>
      <div id="coolOLBarContainer5" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton5"
        class="coolOLBarContainerButton">
        <span>Awareness</span>
       </div>
       <div id="coolOLBarButtonContainer5">
        <div></div>
       
        <div id="cbAwareness" title="Explore Training & Awareness Material" onclick="javascript: showExplorerPane(awarenessExplorerPane);">
          <img src="../../images/oe_favs.gif" width="33" height="33"><br>Training & Awareness
        </div>
       </div>
      </div>

      <div id="coolOLBarContainer6" upButton="upButton" downbutton="downButton">
       <div id="coolOLBarContainerButton6"
        class="coolOLBarContainerButton">
        <span>Help</span>
       </div>
       <div id="coolOLBarButtonContainer6">
        <div></div>
        <div id="cbGeneralHelp" title="JEP General Help" onclick="javascript: showExplorerPane(helpExplorerPane);">
          <img src="../../images/oe_mycomp.gif" width="33" height="33"><br>General Help
        </div>
       </div>
      </div>

      <div id="upButton">5</div>
      <div id="downButton">6</div><img src="../../UILib/behaviors/images/transparent.gif" width="4" height="11">

     </div>

    <!--tree,view and list pane stuff-->

     <div id="introAndNewsPane">
      <div><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Introduction And News</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( introAndNewsPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <div id="introAndNewsBody" style="overflow:auto; background: white">

    <span
      style="width:400px; height:70px; color:red/*#2984ff*/; font-style:italic; font-family:arial black; font-size:40px;   font-weight:bold; FILTER: DropShadow(Color=#000000, OffX=2, OffY=2, Positive=1);">
    JEP Online
    </span>


      <div style="padding-left:40px;padding-right:40px;font-style:italic;font-family:arial black;font-size:15px;">
      Welcome to JEP, the Asset Accounting Centre's Information Management System
      </div>
      <div style="padding-top:20px;padding-left:40px;padding-right:40px;font:menu;">

      <fieldset style="background:infobackground; padding:5px;">

      <p><b><u>Version</u></b></p>
      <p>
      You are currently logged on to JEP XP
      </p>

      <p>&nbsp
      </p>
      <p>&nbsp
      </p>
      <p>&nbsp
      </p>


      </fieldset>
      </div>
      
      </div>
     </div>

     <div id="accountsExplorerPane" style="visibility:hidden">
      <div><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Accounts Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( accountsExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="accountsExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     <div id="helpMaintenanceExplorerPane" style="visibility:hidden">
      <div><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Help Maintenance Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( helpMaintenanceExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="helpMaintenanceExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     <div id="reportsExplorerPane" style="visibility:hidden" >
      <div title="Tree explorer for standard reports"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Reports Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( reportsExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="reportsExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     <div id="awarenessExplorerPane" style="visibility:hidden">
      <div title="Tree explorer for awarenss material"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Awareness Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( awarenessExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="awarenessExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     <div id="userAccountExplorerPane" style="visibility:hidden">
      <div title="Tree explorer for management of JEP user accounts"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;User Account Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( userAccountExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="userAccountExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     <div id="referenceDataExplorerPane" style="visibility:hidden">
      <div title="Tree explorer for managing common reference data and codes used throughout the application"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Reference Data Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( referenceDataExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="referenceDataExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>
     
     <div id="trackingExplorerPane" style="visibility:hidden">
      <div title="Tree explorer for managing the tracking of correspondence through the recording of relevant events and occurrences"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Correspondence Tracking Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( trackingExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="trackingExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>
     
     <div id="helpExplorerPane" style="visibility:hidden">
      <div title="Tree explorer for navigating on-line help"><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Help Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( helpExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="helpExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div> 
     

     <div id="generalExplorerPane" style="visibility:hidden">
      <div><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Explorer Pane</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( generalExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="generalExplorerBody" style="overflow:auto; background: white">
      
       <!-- display explorer tree object-->
        <script type="text/javascript">
            document.write("Yet to be implememted");
        </script>
      </div>
      </nobr>
     </div> 

     <div id="orgUnitExplorerPane" style="visibility:hidden">
      <div><span style="font-family: menu; text-align: left; width: 50%; padding: 0px;">&nbsp;Org Unit Explorer</span><span style="text-align: right; width: 50%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( accountsExplorerPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <nobr>
      <div id="orgUnitExplorerBody" style="overflow:auto; background: white">
      </div>
      </nobr>
     </div>

     

     <div id="contextHelpPane">
      <div><span style="font-family: menu; text-align: left; width: 80%; padding: 0px;">&nbsp;Contextual Help For Selected Explorer Item</span><span style="text-align: right; width: 20%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( contextHelpPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <div id="contextHelpPaneContent"></div>
     </div>
      
     <div id="generalHelpPane">
      <div><span style="font-family: menu; text-align: left; width: 80%; padding: 0px;">&nbsp;General Help</span><span style="text-align: right; width: 20%; padding: 0px;"><span style="vertical-align: middle; margin: 2px;" onclick="javascript: setVisibility( generalHelpPane, false, true);"><img src="../../images/ximage.gif" width="8" height="7"></span></span></div>
      <div id="generalHelpPaneContent"></div>
     </div>
     
    </div>

    <!-- tool bars and menu  stuff-->

    <div id="bar1" barCount="1" dockable="true" initPosition="top">
     <span id="bar1handle"></span>
     <span id="menuRoot1" menu="">Action</span>
     <span id="menuRoot2" menu="mnuRoot2Menu">View</span>
     <span id="menuRoot4" menu="mnuRoot4Menu">Help</span>
     <span style="text-align: right; width: 85%; padding: 0px;">
      <span id="menuRoot5" menu="mnuRoot4Menu" style="color:#2984ff;font-family:arial black;font-style:italic;font-size:9px;font-weight:bold;">JEP</span>
     </span>
    </div>

    <div id="mnuRoot1Menu"> 
     <div onclick="javascript: closeThisWindow();"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Exit</div>
    </div>
    <div id="mnuRoot2Menu">
     
     <div onclick="javascript: setVisibility (coolOLBar1, ! (isVisible(coolOLBar1)), true)"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Application Bar</div>
     <div onclick="javascript: setVisibility (contextHelpPane, ! (isVisible(contextHelpPane)), true); if (isVisible(contextHelpPane)) {clearHelpPane('contextHelpPane')};"><img src="../../images/help.gif" width="16" height="16">Context Help Pane</div>
     <div onclick="javascript: setVisibility (generalHelpPane, ! (isVisible(generalHelpPane)), true);"><img src="../../images/help.gif" width="16" height="16">General Help Pane</div>

     <div></div>

     <div onclick="javascript: showExplorerPane (accountsExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Accounts Explorer</div>
     <div onclick="javascript: showExplorerPane (helpMaintenanceExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Help Maintenance Explorer</div>
     <div onclick="javascript: showExplorerPane (reportsExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Reports Explorer</div>
     <div onclick="javascript: showExplorerPane (awarenessExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Awareness Explorer</div>
     <div id="cmbUserAccountMgr" disabled onclick="javascript: showExplorerPane (userAccountExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">User Account Explorer</div>
     <div onclick="javascript: showExplorerPane (referenceDataExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Reference Data Explorer</div>
     <div onclick="javascript: showExplorerPane (trackingExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Correspondence Tracking Explorer</div>
     <div onclick="javascript: showExplorerPane (introAndNewsPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Introduction & News</div>
     <div onclick="javascript: showExplorerPane (helpExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">General Help Explorer</div>
     <div onclick="javascript: showExplorerPane (orgUnitExplorerPane);"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Org Unit Explorer</div>
      
    </div>

    <div id="mnuRoot4Menu">
     <div onclick="javascript: showExplorerPane (helpExplorerPane);"><img src="../../images/help.gif" width="16" height="16">General Help Explorer</div>
     <div onclick="javascript:window.open('../../trainingAndAwareness/newUserGuide/newUserGuide.htm');"><img src="../../images/helpbook.gif" width="16" height="16">New User Guide ...</div>
     <div></div> 
     <div onclick><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Add to Favorites</div>
     <div></div> 
     <div onclick="javascript: showTechnicalSupport();"><img src="../../UILib/behaviors/images/transparent.gif" width="16" height="16">Technical Support ...</div>

    <div onclick="javascript: showAboutJep();"><img src="../../images/links.gif" width="16" height="16">About JEP ...</div>
    </div>

    </body>

    </html>

     

     

     

  • Re: Relocate Server Legacy ASP

    11-07-2009, 2:04 PM
    Answer
    • All-Star
      63,163 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,332
    • TrustedFriends-MVPs
    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Relocate Server Legacy ASP

    11-10-2009, 4:43 AM
    • Member
      1 point Member
    • NelsonM
    • Member since 11-04-2009, 8:55 AM
    • Posts 2

    Thanks, reposted on the ISS Forum.

Page 1 of 1 (3 items)