Dear,
I have posted some related questions and then was trying to find similar examples on the forum.
However, I got to know there are fee examples with ActiveX (IWebbroswer2, IHTML) of embedded internet explorer of Labview.
Therefore, I need to explain more detail for my trouble.
I want to collect and arrange some data from web page hosted by 3rd party using LabVIEW (ver.13) automatically.
The page has adopted JAVA so I couldn't identify the id of control (Tab) and detail of source code.
The problem is that the page was launched with information of Tab#1 but I need the information of Tab#2.
The page of Tab#2 cannot be reached by any URL techniques.
So, I implement IWebbrowser2 on the front panel of LabVIEW.
then, I want to make an mouse event (just one cliking on the Tab#2)) on IWebbrowser2 container.
But I have no idea how to fire and handle the event though I was searching MSDN page.
Although I am not an user of ActiveX with LabVIEW, I believe, this kind of work will be popular in case that we can't ask some formatted data to the data provider (host of webpage).
Best,
Labmaster.
*)The following is the java script on the source of (data) html.
I don't know if this is helpful to understand my situation.
JaVa
====================================================================================
<script type="text/javascript" src="/js_n/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/js_n/code.js"></script>
<script type="text/javascript">
<!--
function onSelectTab(num){
var obj = document.gubunTab;
obj.gubuncode.value = num;
obj.submit();
}
function onSelectTab2(num) {
var obj = document.gubunTab2;
obj.gubuncode.value = num;
obj.submit();
}
var tcount =1;
function onsubTab(val) {
// var subcount = 0;
var subcount1 = 0;
var subcount2 = 0;
var subcount3 = 0;
var obj1 ;
var obj2 ;
var obj3 ;
obj1 = document.getElementsByName("divTmp1");
subcount1 = obj1.length;
obj2 = document.getElementsByName("divTmp2");
subcount2 = obj2.length;
obj3 = document.getElementsByName("divTmp4");
subcount3 = obj3.length;
//alert(subcount1+"/"+subcount2+"/"+subcount3);
if (val == 2) {
for(var i = 0; i < subcount1; i++) {
obj1[i].style.display = "none";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "block";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "none";
}
document.getElementById("subtitle1").style.display = "block";
document.getElementById("subtitle2").style.display = "none";
} else if(val == 3) {
for(var i = 0 ; i < subcount1 ; i++) {
obj1[i].style.display = "none";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "none";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "block";
}
document.getElementById("subtitle1").style.display = "none";
document.getElementById("subtitle2").style.display = "block";
} else {
for(var i = 0 ; i < subcount1 ; i++) {
obj1[i].style.display = "block";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "none";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "none";
}
document.getElementById("subtitle1").style.display = "none";
document.getElementById("subtitle2").style.display = "none";
}
tcount = val;
}
//-->
</script>
I have posted some related questions and then was trying to find similar examples on the forum.
However, I got to know there are fee examples with ActiveX (IWebbroswer2, IHTML) of embedded internet explorer of Labview.
Therefore, I need to explain more detail for my trouble.
I want to collect and arrange some data from web page hosted by 3rd party using LabVIEW (ver.13) automatically.
The page has adopted JAVA so I couldn't identify the id of control (Tab) and detail of source code.
The problem is that the page was launched with information of Tab#1 but I need the information of Tab#2.
The page of Tab#2 cannot be reached by any URL techniques.
So, I implement IWebbrowser2 on the front panel of LabVIEW.
then, I want to make an mouse event (just one cliking on the Tab#2)) on IWebbrowser2 container.
But I have no idea how to fire and handle the event though I was searching MSDN page.
Although I am not an user of ActiveX with LabVIEW, I believe, this kind of work will be popular in case that we can't ask some formatted data to the data provider (host of webpage).
Best,
Labmaster.
*)The following is the java script on the source of (data) html.
I don't know if this is helpful to understand my situation.
JaVa
====================================================================================
<script type="text/javascript" src="/js_n/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/js_n/code.js"></script>
<script type="text/javascript">
<!--
function onSelectTab(num){
var obj = document.gubunTab;
obj.gubuncode.value = num;
obj.submit();
}
function onSelectTab2(num) {
var obj = document.gubunTab2;
obj.gubuncode.value = num;
obj.submit();
}
var tcount =1;
function onsubTab(val) {
// var subcount = 0;
var subcount1 = 0;
var subcount2 = 0;
var subcount3 = 0;
var obj1 ;
var obj2 ;
var obj3 ;
obj1 = document.getElementsByName("divTmp1");
subcount1 = obj1.length;
obj2 = document.getElementsByName("divTmp2");
subcount2 = obj2.length;
obj3 = document.getElementsByName("divTmp4");
subcount3 = obj3.length;
//alert(subcount1+"/"+subcount2+"/"+subcount3);
if (val == 2) {
for(var i = 0; i < subcount1; i++) {
obj1[i].style.display = "none";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "block";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "none";
}
document.getElementById("subtitle1").style.display = "block";
document.getElementById("subtitle2").style.display = "none";
} else if(val == 3) {
for(var i = 0 ; i < subcount1 ; i++) {
obj1[i].style.display = "none";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "none";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "block";
}
document.getElementById("subtitle1").style.display = "none";
document.getElementById("subtitle2").style.display = "block";
} else {
for(var i = 0 ; i < subcount1 ; i++) {
obj1[i].style.display = "block";
}
for(var j = 0 ; j < subcount2 ; j++) {
obj2[j].style.display = "none";
}
for(var k = 0 ; k < subcount3 ; k++) {
obj3[k].style.display = "none";
}
document.getElementById("subtitle1").style.display = "none";
document.getElementById("subtitle2").style.display = "none";
}
tcount = val;
}
//-->
</script>