03-27-2013 08:09 AM - edited 03-27-2013 08:10 AM
Hi,
I'am creating a .vi were one step consists in openning an URL in a web browser (firefox), and the opening is quite long, with an unpredictible duration. (request in database).
I need my program to perform the next actions only when the page is fully downloaded and displayed.
Is theire a method to get the confirmation that the page download is finished?
Many thanks in advance for your help !
Regards
antoine
03-27-2013 09:31 AM
This depends on how you are opening the webpage from LabVIEW. Given Firefox has not ActiveX interface, I presume you are simply passing a URL into "Open URL in Default Borwser.VI"? If you are then you probably have no way to query Firefox to determine when it has finished updating.
If you use the ActiveX WebBrowser control in LabVIEW you can call the Busy? method to determine when the embedded browser has stopped downloading the page.
03-27-2013 10:03 AM
Hi Thoric,
Thanks a lot for your clear reply.
Yes, I'am using the open URL in default browser .vi, and yes, I was expecting something like activeX controle over firefox, so the absence of activeX interface is a bad news....
Will look more in details about the ActiveX WebBrowser control in LabVIEW wich I don't know.
Thanks again for the help,
antoine
03-27-2013 10:10 AM
by the way... newbees question, sorry, but how to create the "webBrowser refnum" and the related property node? I'am always struggling with refnum creation when I try to duplicate some examples...
thanks !
antoine
03-27-2013 10:50 AM
@mknix wrote:
by the way... newbees question, sorry, but how to create the "webBrowser refnum" and the related property node? I'am always struggling with refnum creation when I try to duplicate some examples...
thanks !
antoine
From the Front Panel drop a .NET & ActiveX > WebBrowser control down. This create the block diagram terminal from which you get the reference handle
Firefox doesn't support ActiveX because that's a Microsoft concept, which they're opposed to, therefore they don't host an ActiveX interface. Internet Explorer however does have an ActiveX interface, and that is what is embedded in the ActiveX WebBrowser control.
03-27-2013 11:25 AM - edited 03-27-2013 11:37 AM
OK, thanks a lot for your time and clear explanations.
I was always looking in the block diagram palette, not front panel
I'am normally not pro-microsoft, but here I seem to have no other choice than go with IE...
regards
antoine