07-29-2008 03:36 PM
07-30-2008 11:39 AM
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.
07-30-2008 12:33 PM
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
07-30-2008 01:37 PM
08-06-2008 11:57 AM
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
08-22-2008 02:33 PM
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