To go back to the original question (finding input tags...) - the
following code works (you could add 'value' as well as 'type' and
'name'). I still can't get the form submit() to work, but I'm pretty
sure that's because the page is trapping keypress events to stop that
sort of thing being done.
CLOSE ALL
CLEAR ALL
RELEASE ALL
CLEAR
loIE = CREATEOBJECT("InternetExplorer.Application")
? loIE.Navigate2("http://www.universalthread.com")
oDoc=loIE.Document
oFm = oDoc.getElementById("Form1")
oInputs=oFm.getElementsByTagName("input")
FOR EACH litem IN oInputs
?litem.type, litem.name
NEXT
loColn = CREATEOBJECT('Collection')
FOR EACH litem IN oInputs
loColn.Add(lItem.Type+' - '+lItem.name)
NEXT
loIE.Quit
FOR EACH litem IN loColn
?lItem
NEXT
CLOSE ALL
CLEAR ALL
RELEASE ALL
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.