01-09-2013 10:32 AM
01-09-2013 10:54 AM
HTML is just text.
You need to learn how to parse text.
01-10-2013 08:28 AM
01-10-2013 10:11 AM
You may have a PHP or something like that generating the data that is displayed on the webpage.
But in the end, all that the browser "sees" is pure HTML text.
I don't have any code to share.
01-10-2013 10:44 AM
01-11-2013 08:25 AM
Hello Blue_Strike,
I found a couple of options. You can use the Easy HTTP Client VIs, specifically the Get.vi, that uses an example on this link to obtain the coordinates using Google maps. If you just specify the URL of your HTML web page.
You could also work with Data Sockets. However, they don’t appear to support SSL/TLS protocols, as it doesn’t like URLs with https.
In case your HTML is document is offline, you can simply use the File IO VIs: “Open/Create/Replace File”, “Read from Text File” and “Close File”.
What I found out is that they read the HTML source code, not the actual body. Does the text you want to extract from the Javascript available in the source code?
If you want to refresh your web page programmatically to obtain always the latest information, I found an example that uses ActiveX calls to programmatically click buttons on a website, which is much more than you need, but you should be able to extract from the VI the functionality to load the web page continuously and then extracting the content you need.