06-23-2009 10:52 AM
I did a few searches on the forums, but I cant seem to find someone that directly solved this issue:
I have data being collected at a remote location. Every once in a while, I save it to the C drive.
I would like to transfer the file to a webpage, that all of my co-workers have access to.
To upload to this page you must:
1) Log in
2) click a link
3) click another link
4) fill in 3 boxes
I know that you can interact with webpages via ActiveX controls, but is it possible to do this programmatically?
Because I know exactly what I need to send to each box, I just dont know how to do so.
Anyone have somewhere to get started? Or a thread involving this that I missed?
Solved! Go to Solution.
06-23-2009 10:59 AM
Hi Cory K,
see this link:
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=331121#M331121
Mike
07-04-2009 06:41 PM - edited 07-04-2009 06:44 PM
I still seem to be stuck on this issue.
For a simple example, I used Facebook, since all that was on the log-in page was the login credentials.
I tried to modify the VI Mike pointed me to, but I dont think I did so correctly.
Can someone take a look at the attached VI and tell me what I am doing incorrectly?
When I enter the email and password, I get :
Error 97 Occurred
Possible Reason(s):
LabVIEW: Null Refnum was passed as input.
Does anyone have a facebook account they could try logging onto?
(Note: If you modify the VI, please keep it in version 8.5, thats all I have at home )
07-04-2009 11:04 PM
i tried it with my account and ended up with the same error:(
07-05-2009 01:27 AM - edited 07-05-2009 01:30 AM
HI Cory,
i think the document name creates this trouble. If you use the property->length on the forms refnum, then you can see that there is one form. If you connect a 1 to the index input instead of the "loginform" to the name input, theni can set the email and the password.
You should use the "ReadyState" property inside a loop instead of the fixed wait time.
Mike
07-05-2009 11:15 AM
07-05-2009 11:42 AM
I am getting there, but not quite.
When I enter the email and password, they arent placed in the correct boxes.
When I run the attached VI, it enters
Email : email@server.comemail@server.com
Password : (blank)
I have tried changing the 'Form Element' indexes but it still wont work.
I think it may have something to do with this:
The 'afterBegin' constant was placed in the VI I found. I'm not really sure what it does, or if I should have something else there.
07-05-2009 11:48 AM
07-05-2009 03:11 PM
Hi Cory,
maybe i was not clear enough. Change only the name of the form to the index.
See the attached picture.
With this changes it works for me.
Mike
07-05-2009 03:39 PM
You were correct Mike.
Now I have a different issue.
Say I enter the credentials once:
Email : email@email.com
Password : password
If I try a second time, they will now append to the last entry:
Email : email@email.comemail@email.com
3rd Time
Email : email@email.comemail@email.comemail@email.com
.... etc
Do you know how I can clear out the entry before entering the new one?