LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behavior in IE status bar when using Web Publishing Tool (LV 8.5.1)

I created a web page with a LV panel using the Web Publishing Tool (LV 8.5.1). It works great.
But I realized that my browser (Internet Explorer) displays continually several messages at the windows status bar:
Downloading pictures http://myIP/.snap?.....
 
Is there a way to hide this useless information?
 
I know that this is a normal behavior of the IE status bar but it seems so weird and uncontrolled when used to display a LV panel.
 
Has anybody an idea?
 
Thanks in advance.
 
Klein
0 Kudos
Message 1 of 6
(3,107 Views)

How about hiding the status bar?

I think the snap option simply adds a refresh tag to the page, so the operation is controlled entirely by how IE decides to do it. You should check to make sure that's true, however.

You could use the control option, but that requires using an ActiveX control and installing the LabVIEW run-time engine.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,086 Views)

Hi tst, thank you for your reply.

I could hide the status bar in my computer but the behavior still happens in other client computers..

I am trying to include a javascript code to control messages displayed in Internet Explorer status bar. Something like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN">
<HTML>
<HEAD>
<TITLE>Message1</TITLE>
<script language="javascript">
   <!--
   LVImages = new Array();
   LVSrcs = new Array();
   function LVSched(image, delay) {
      LVImages[LVImages.length] = image;
      LVSrcs[LVSrcs.length] = image.src;
      setInterval("LVUpdate("+(LVImages.length-1)+")", delay);
      image.onload='';
   }
   function LVUpdate(index) {
      LVImages[index].src=LVSrcs[index] + '&' + Math.random();
   }
   //-->
</script>

<script type="text/javascript">
function load()
{
window.status="Message2"
}
</script>
<!-- FIM -->

</HEAD>
<body onload="load()">
<BODY >

<H1>Message3</H1>
Message4<P>
<IMG src="/.snap?Test.vi" alt="Test" BORDER=1 onload="LVSched(this, 1)"><P>
Message5
</BODY>
</HTML>

But those Download information still display.

Klein

0 Kudos
Message 3 of 6
(3,081 Views)
I don't really know HTML or Javascript and I have zero practical experience with the remote panel feature, so I can't really help. The only thing I can suggest is that you repeatedly perform a capture of the panel on your own (using the VI.Get Panel Image method) and save that to a known location, which you can then serve as an image. I have done this in the past, but only as a quick experiment.

___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,075 Views)

Hi tst,

I found a way to minimize my problem. In the line:

<IMG src="/.snap?Test.vi" alt="Test" BORDER=1 onload="LVSched(this, 1)">

The second parameter of the function LVSched shall be filled with a integer number in miliseconds. So, I changed 1 to 1000 ms = 1second.

It is working better now!

Thanks,

Klein

 

0 Kudos
Message 5 of 6
(3,045 Views)

Sorry to come into this thread so late.

 

Klein, Did LabVIEW generate that javascript code with a '1' instead of '1000'? If so that is a bug.

 

IE will display in the status bar that the web page is downloading the snapshot everytime that it refreshes. Is this still a problem? Your last post implied that it was no longer an issue when the snapshot refreshes every second.

 

If you would like the window status to not change at all you could try some trick like the following:

 

function LVUpdate(index) {
    LVImages[index].src=LVSrcs[index] + '&' + Math.random();

    window.status = '';

}

 

Keep in mind that this is just a trick and many users configure their browser to prevent javascript from playing with the status bar. As tst said- the javascript is just refreshing an image and it is IE itself that is changing the status bar. 

  

Thanks,

 

Nathan 

0 Kudos
Message 6 of 6
(2,972 Views)