Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How do I Remove the White Border of the Lookout Web Client Page?

Primary Software: Lookout
Primary Software Version: 5.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I am exporting my client process in Lookout so that I can access it using a Web Browser. Whenever I load the html file, the page shows a top and right white border which I would like to remove, so that I can have the web page showing only the panel of my client process. How can I accomplish that?

Solution: The Lookout environment currently does not give you the option to remove the borders when exporting the page, however you can manually edit the html file to obtain the desired result. Proceed as follows:

Open the html file generated by Lookout using a text editor. The text below is an example of how the html file will look:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<html>
<head>
<title>Lookout Web Control - client</title>
</head>
<body>
<script language="javascript">
function myErrorFunction() {
alert("Unable to download Lookout ActiveX Control from the indicated location (//computername/webclient/lookout/lookout5007.ocx). Contact the developer of this web page to report this problem.");
}
</script>

If your Lookout Web Client is not visible or functioning properly, you may need to install the Lookout Player. Click <a href="ftp://ftp.ni.com/support/lookout/webclient/5.0/lk50_web.exe">here</a> to download. For further help with the Lookout Web Client, see the <a href="http://digital.ni.com/public.nsf/websearch/be15fb343c2e9ba4862569dc007ac900?OpenDocument">KnowledgeBase</a>.
<p>

<object id="LookoutCtl"
classid="CLSID:799957FD-3751-4B08-9C05-CA88521CBF86"
align="baseline" border="0" codebase="\\computername\webclient\lookout/lookout5007.ocx" width="850" height="650" onError="myErrorFunction()">
<PARAM NAME="ProcessFile" VALUE="client">
<PARAM NAME="ServerPath" VALUE="\\computername\webclient\">
<PARAM NAME="StatusBar" VALUE=1>
</object>
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The bold portions are the parts you will need to modify in order to obtain the desired result.

  1. Replace the bold text <body> by the following statement :

    <body text="000000" bgcolor="ffffff" bgcolor="#ffffff" text="black" link="blue" alink="red" vlink="purple" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
  2. Remove completely the long bold statement just after </script>;
  3. Increase the width="850" until the client panel fits the web browser page appropriately, not leaving any room for the undesired right white border. Actually this parameter is also available at the creation time from within the Lookout environment, go to File»Web Export Options... and you will be able to define Width and Height of the resulting html page.


Related Links: KnowledgeBase ID 1VMAL9M6 How Do I Export a Client Process for Use on the Web?

Attachments:





Report Date: 04/28/2003
Last Updated: 05/12/2005
Document ID: 2WR9JOUL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit