These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Windows without toolbar

Can I open Wexserver in a window without any toolbar, just like that in the demo screen?

Alan Ip 10/18/2003 11:27 PM
You can use this javascript function to do so:

    function openWin(winName, urlLoc, w, h, showStatus, isViewer) {
        l = (screen.availWidth - w)/2;
        t = (screen.availHeight - h)/2;
        features  = "toolbar=no";      // yes"no 
        features += ",location=no";    // yes"no 
        features += ",directories=no"; // yes"no 
        features += ",status=" + (showStatus?"yes":"no");  // yes"no 
        features += ",menubar=no";     // yes"no 
        features += ",scrollbars=" + (isViewer?"yes":"no");   // auto"yes"no 
        features += ",resizable=" + (isViewer?"yes":"no");   // yes"no 
        features += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
        features += ",height=" + h;
        features += ",width=" + w;
        features += ",left=" + l;
        features += ",top=" + t;
        return window.open(urlLoc,winName,features);
    }

You can call the function like this:

openWin("SomeWindow", "default.asp", 800, 600, false, true);
Cem Alacayir 10/24/2003 8:16 AM
Where do you add/or change this settings which file name?

Also how do you change the "Welcome to WebExplorer Server" screen.

Thanks,
Edwin Ochoa 3/8/2004 10:59 AM
something like this... "Welcome to TCC Intranet"
Edwin Ochoa 3/8/2004 1:57 PM
You should put this javascript code into your main page from where you need to call WebExplorer Server. For example, your page may look like this:

<html>
<head>
<script language="javascript">
function openWin(winName, urlLoc, w, h, showStatus, isViewer) {
l = (screen.availWidth - w)/2;
t = (screen.availHeight - h)/2;
features = "toolbar=no"; // yes"no
features += ",location=no"; // yes"no
features += ",directories=no"; // yes"no
features += ",status=" + (showStatus?"yes":"no"); // yes"no
features += ",menubar=no"; // yes"no 
features += ",scrollbars=" + (isViewer?"yes":"no"); // auto"yes"no 
features += ",resizable=" + (isViewer?"yes":"no"); // yes"no 
features += ",dependent"; // close the parent, close the popup, omit if you want otherwise 
features += ",height=" + h;
features += ",width=" + w;
features += ",left=" + l;
features += ",top=" + t;
return window.open(urlLoc,winName,features);
}
</script>
</head>
<body>
<a href="javascript:openWin('WexServerWin', 'wexserver/default.asp', 800, 600, false, true);">Click here to open WebExplorer Server</a>
</body>
</html>

Make sure that you set the "urlLoc" parameter (it's "wexserver/default.asp" in the above example) to the correct location of the application. 
I have sent you an email about your other question.
Cem Alacayir 3/9/2004 5:59 PM