09-02-2012 11:49 PM
Hello
i am trying to click on the"generate Ephemeris" button using the activex webbrowser container.
see the webpage
http://ssd.jpl.nasa.gov/horizons.cgi
Using this code, it just click on the seach button. I tried to change the index number but still clicking the "search button".
What i am doing wrong???
09-04-2012 05:47 AM
any ideas???
09-04-2012 08:38 AM
This is counter-intuitive, but use the "name" field rather than the "index" field for the "item" invoke node. This assumes IE8 or later. MS changed the way that method works. Also:
09-04-2012 10:00 AM
Thanks smercurio_fc
I tried before using the "name" field rather than the "index" field extracted from the html web page code with negative results. I used the name "go" and also "Generate Ephemeris" or "submit".
<form method="post" action="http://ssd.jpl.nasa.gov/horizons.cgi#results" enctype="multipart/form-data"><input type="submit" name="go" value="Generate Ephemeris" /></form>
I AM STUCK!!!!!
In the first frame of the sequence, i load the page, the second has a time delay of 5s
09-04-2012 12:48 PM
No, I meant actually connect the numeric value of 1 to the "name" field, rather than the "index" field. That will index out the correct form. The "To Variant" is optional in this case since the invoke node will perform an implicit data conversion of integer to variant.
09-04-2012 01:35 PM
Instead of using a wait, you may want to check that the web browser has finished loading the page as shown in the snippet below:
09-04-2012 05:16 PM
Thank you guys.
if I connect the value of 0 to the "name"field, it works perfectly and goes to the seach page, but when the value is 1 nothing happens (doesn´t work)
Smercurio_fc, did you run this vi on your computer??
09-04-2012 05:37 PM
If you want others to test your code, upload the code, or at least a snippet. You can't expect that someone else will recreate your work from a screenshot in order to help you.
09-04-2012 05:44 PM
upsss!!!!
09-04-2012 06:02 PM
Well, that web page is doing something I don't understand and don't have time to investigate, but I hope someone else will have a solution. In the meanwhile, any chance you can use the telnet interface?
Also, a LabVIEW style note: you should close ALL ActiveX references, including those that you create by converting from a variant, in the opposite order from the order in which you opened them.