07-05-2009 03:55 PM
I tried using the 'Reset' element in the invoke node for 'Form Element' but that doesnt seem to help.
I still believe the problem lies with the 'afterBegin' placement of the string.
Although I'm not sure what allowable inputs are for that node.
07-06-2009 12:51 AM
Hi cory,
you can reload the webside, maybe it's a solution for you.
See this link for more information.
Mike
07-06-2009 05:59 AM
Try using setAttribute with the attribute set to "value" instead of insertAdjacentText.
07-06-2009 03:56 PM
You were correct nathan, using setAttribute cleared out the last entry, and entered the new one.
In case anyone needs to see how the entire VI worked, once completed, I attached it as a reference.
At the moment, it logs into Facebook, however it can be modified to log in to other web pages.
07-06-2009 04:05 PM
Two minor suggestions:
1) If you right-click on "ReadyState" and create a constant, you'll get an enumeration which you can use in place of the number 4.
2) A couple of your ActiveX references aren't closed. Annoying as it is, the recommendation is that you close every reference. That means that every time you have a reference out terminal that's not connected to anything, it should be connected to Close Reference, with a few exceptions. Those exceptions are when a wire forks (you only need to close one of them), and for ActiveX objects that are on the front panel (such as the web browser) rather than being created during the execution of your code (for example the IHTMLDocument2 reference).
07-06-2009 04:08 PM
Just out of curiosity, can you please explain number 2.
I believe you that this is a correct coding practice, I would just like to know why.
Does it keep the reference in memory if I dont close it?
If so, until when? Next time I run the VI? Until I close LabVIEW?
I just like to learn the correct way to do stuff so I dont always make ad-hoc n00b code
07-06-2009 04:17 PM
Cory K wrote:Does it keep the reference in memory if I dont close it?
If so, until when? Next time I run the VI? Until I close LabVIEW?
The references stay in memory, but I don't know how long. According to this post, LabVIEW closes up references when the top-level VI stops running.
03-29-2010 07:08 PM
Hi Cory,
I have a silimar project now on Amazon.com
1) Log in https://sellercentral.amazon.com/gp/homepage.html
2) click inventory Tab
3) select the file type in a dropdown box
4) browse to inventory file and "click" upload
5) "click" log out
Can you show me some of your code ? donghuali@gmail.com
Thanks !