LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

webpage manipulation

Solved!
Go to solution

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?

Cory K
0 Kudos
Message 1 of 18
(3,693 Views)
Message 2 of 18
(3,691 Views)

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 Smiley Tongue )

Message Edited by Cory K on 07-04-2009 06:44 PM
Cory K
0 Kudos
Message 3 of 18
(3,645 Views)

i tried it with my account and ended up with the same error:(

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 4 of 18
(3,634 Views)

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

Message Edited by MikeS81 on 07-05-2009 08:30 AM
0 Kudos
Message 5 of 18
(3,628 Views)
OK I will give that a shot.
Cory K
0 Kudos
Message 6 of 18
(3,614 Views)

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:

afterBegin.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

Cory K
0 Kudos
Message 7 of 18
(3,609 Views)
Sorry, I forgot to attach the VI.
Cory K
0 Kudos
Message 8 of 18
(3,607 Views)

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

Message 9 of 18
(3,593 Views)

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?

Cory K
0 Kudos
Message 10 of 18
(3,583 Views)