That's one way, but you can also subclass IE and populate the fields using
something like the following code which demonstrates doing some stuff via
frames:

* worldsgreatest.prg program - mostly stolen from other programmers!

<pre>
LPARAMETERS lclast,lcfirst
IF PARAMETERS()<2
 return( MESSAGEBOX('Please pass Last and First names',16,'OOPS',4)
endif
Set Safety Off
OIE=Createobject('internetexplorer.application')
OIE.Navigate('http://jssi.co.shelby.tn.us/')
OIE.Visible=.T.
ckstatus()
Y=OIE.Document.frames(0).Document
If Y.anchors().Length<1
        Return
Endif
* criminal court name search
OIE.Document.frames(0).Document.links(13).Click()
ckstatus()

x=OIE.Document.frames(0).Document.body
OIE.Document.frames(0).Document.Forms(0).XINNLN_000101.Value=LCLAST
OIE.Document.frames(0).Document.Forms(0).XINNFN_000101.Value=LCFIRST
OIE.Document.frames(0).Document.Forms(0).SUBMIT()
ckstatus()

FUNCTION ckstatus
* for some reason, this order of checking on IE works best
DO WHILE OIE.readystate<>4
ENDDO
DO WHILE OIE.document.readystate<>'complete'
ENDDO
DO WHILE OIE.busy
enddo
</pre>

I have this code, or something close to it in an application I am writing
for someone. It is the best of both worlds because it does the launching,
navigation and some population of the webpage for the user. It also leaves
the window open for them to continue on in any direction. The users are
probably at least three times faster doing this than having to launch,
navigate and populate their webpages. 

John



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dave Bernard
Sent: Wednesday, February 21, 2007 5:43 PM
To: [email protected]
Subject: RE: Program to scrape text from web page

Try this:

oHTTP = CreateObject("MSXML2.XMLHTTP")
oHTTP.Open([GET], .lcMQURL, .F.)
oHTTP.Send()

.lcMQXML = oHTTP.ResponseText
lcHTMLCode = .lcMQXML

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of MB Software Solutions
Sent: Wednesday, February 21, 2007 6:34 PM
To: [EMAIL PROTECTED]
Subject: Program to scrape text from web page

I did this back at a place in Michigan earlier this year, and I think I 
did it with something from West Wind.  I've got WW, but I can't recall 
what program I used this past summer.  Can anyone advise?




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** 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.

Reply via email to