01-25-2011 04:57 PM
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?
01-26-2011 03:52 PM
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,
01-26-2011 05:11 PM
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:
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.
01-27-2011 05:09 PM
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,