LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with web browser "popup" links when using ActiveX Control: Microsoft Web Browser?

I'm writing code to interact with web pages: input information, submit forms, etc.

 

Some forms, when submitted in a standard web browser, open a new page in a new window. If I click on the submit button inside of an ActiveX control in labview, a browser window pops up. Ok, fine.

 

However, when I programatically submit the form via HTMLElement invoke nodes, no pop up occurs. What I'd like is for the popup window to be sent to a 2nd ActiveX control. Anyone know how this can be done?

0 Kudos
Message 1 of 4
(3,162 Views)

Hi dthor,

 

Would it be possible to upload the code you are using? If I know how you are structuring your code, I might be able to better help you.

 

Thanks,

0 Kudos
Message 2 of 4
(3,135 Views)

My code is the same as what I'm using in my other post regarding Radio Buttons (which is solved, by the way). When a HTML form is submitted, the web page calls a javascript function that opens up a new window.

 

The (simplified) code:

web page form submit.png

 

 

The only solution I could come up with is to figure out the URL of the new page is and open it in a different ActiveX web browser. However, I don't have the slightest idea of how to impliment that.

 

Keep in mind that I'm assuming that the new page URL is dynamic, and not something I can just look at the pages' HTML to get. 

0 Kudos
Message 3 of 4
(3,129 Views)

Hi dthor,

 

After playing around with some options, I was not able to find a way to do this. Even if you were able to find out the URL of the new page, you can't dynamically add ActiveX containers. You would have to instantiate them at compile time and then populate a container if a new page opens. If a new page does not open, you would simply have blank containers. 

 

If anyone else knows a way to do this, I would be interested to know.

 

Thanks,

0 Kudos
Message 4 of 4
(3,103 Views)