IE fields for parsing -- for David Smith

This is a discussion on IE fields for parsing -- for David Smith within the xharbour forums in Programming Languages category; David: A week or so ago you provided me a way to pick up the bare stripped text from a page I viewed in Internet Explorer: cText := oIE:document:body:innertext The text I get is missing the 'blanks' from between the text fields so that all the values that I'm looking for are squeezed together and not easily parsed. Is there some way that I can see what other properties/methods are available for 'documents' so that I came get more easily parsed data ?? TIA, -Mel Smith -- Mel Smith...

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-06-2008, 06:44 PM
Mel Smith
Guest
 
Default IE fields for parsing -- for David Smith

David:

A week or so ago you provided me a way to pick up the bare stripped text
from a page I viewed in Internet Explorer:

cText := oIE:document:body:innertext

The text I get is missing the 'blanks' from between the text fields so
that all the values that I'm looking for are squeezed together and not
easily parsed.

Is there some way that I can see what other properties/methods are
available for 'documents' so that I came get more easily parsed data ??


TIA,

-Mel Smith


--
Mel Smith


Reply With Quote
  #2  
Old 08-06-2008, 06:54 PM
dlzc
Guest
 
Default Re: IE fields for parsing -- for David Smith

Dear Mel Smith:

On Aug 6, 3:44*pm, "Mel Smith" <medsyn...@aol.com> wrote:

> * * A week or so ago you provided me a way to pick
> up the bare stripped text from a page I viewed in
> Internet Explorer:
>
> * * cText := oIE:document:body:innertext


... and it was a lucky find! ;>)

> * * The text I get is missing the 'blanks' from between
> the text fields so that all the values that I'm looking
> for are squeezed together and not easily parsed.
>
> * * Is there some way that I can see what other
> properties/methods are available for 'documents' so
> that I came get more easily parsed data ??


I searched Google with
innertext method OR property site:microsoft.com
... and I found a link that led me here:
http://msdn.microsoft.com/en-us/libr...55(VS.85).aspx

Looks like innerHTML rather than innerText will give you better
arranged input.

Maybe?

David A. Smith
Reply With Quote
  #3  
Old 08-06-2008, 08:38 PM
Mel Smith
Guest
 
Default Re: IE fields for parsing -- for David Smith

DAvid:

Thanks for the further hint !

-Mel


Reply With Quote
  #4  
Old 08-06-2008, 08:55 PM
N:dlzc D:aol T:com \(dlzc\)
Guest
 
Default Re: IE fields for parsing -- for David Smith

"dlzc" <dlzc1@cox.net> wrote in message
news:e0d9f9f5-3249-40a5-9793-32beb39682d1@o40g2000prn.googlegroups.com...
Dear Mel Smith:

On Aug 6, 3:44 pm, "Mel Smith" <medsyn...@aol.com> wrote:

>> A week or so ago you provided me a way to pick
>> up the bare stripped text from a page I viewed in
>> Internet Explorer:

>
>> cText := oIE:document:body:innertext


> ... and it was a lucky find! ;>)


>> The text I get is missing the 'blanks' from between
>> the text fields so that all the values that I'm looking
>> for are squeezed together and not easily parsed.

>
>> Is there some way that I can see what other
>> properties/methods are available for 'documents' so
>> that I came get more easily parsed data ??


> I searched Google with
> innertext method OR property site:microsoft.com
> ... and I found a link that led me here:

http://msdn.microsoft.com/en-us/libr...55(VS.85).aspx

> Looks like innerHTML rather than innerText will give
> you better arranged input.


Same link, other candidates:
htmlText
outerHTML
outerText

David A. Smith


Reply With Quote
  #5  
Old 08-06-2008, 09:20 PM
Mel Smith
Guest
 
Default Re: IE fields for parsing -- for David Smith

David:

I tried 'some' of the others (htmltext,innerhtml), and failed because of
an apparent 'missing argument' error. But, I'm not sure.

Will puzzle on these.

Thanks,

-Mel


Reply With Quote
  #6  
Old 08-07-2008, 12:05 AM
N:dlzc D:aol T:com \(dlzc\)
Guest
 
Default Re: IE fields for parsing -- for David Smith

Dear Mel Smith:

"Mel Smith" <medsyntel@aol.com> wrote in message
news:6fv0v3Fd8imhU1@mid.individual.net...
>
> I tried 'some' of the others (htmltext,innerhtml), and
> failed because of an apparent 'missing argument' error.
> But, I'm not sure.
>
> Will puzzle on these.


These properties may not have been implemented in xHarbour's
interface.

David A. Smith


Reply With Quote
  #7  
Old 08-07-2008, 09:05 AM
N:dlzc D:aol T:com \(dlzc\)
Guest
 
Default Re: IE fields for parsing -- for David Smith


"N:dlzc D:aol T:com (dlzc)" <dlzc1@cox.net> wrote in message
newswumk.13110$KZ.8073@newsfe03.iad...
> Dear Mel Smith:
>
> "Mel Smith" <medsyntel@aol.com> wrote in message
> news:6fv0v3Fd8imhU1@mid.individual.net...
>>
>> I tried 'some' of the others (htmltext,innerhtml), and
>> failed because of an apparent 'missing argument' error.
>> But, I'm not sure.
>>
>> Will puzzle on these.

>
> These properties may not have been implemented in
> xHarbour's interface.


.... or there may be case sensitivity ...

David A. Smith


Reply With Quote
  #8  
Old 08-07-2008, 10:30 AM
Ron Pinkas
Guest
 
Default Re: IE fields for parsing -- for David Smith

//-----------------------------------------------------------------------//
PROCEDURE Main()

LOCAL cHtml, oIE

oIE := CreateObject( "InternetExplorer.Application" )

oIE:Navigate( "http://www.xHarbour.com" )

WHILE oIE:Busy
SecondsSleep( 1 )
END

? oIEocument:Body:innerHTML

RETURN

//-----------------------------------------------------------------------//

Ron


Reply With Quote
  #9  
Old 08-07-2008, 09:13 PM
Mel Smith
Guest
 
Default Re: IE fields for parsing -- for David Smith

Ron:

Thanks for the hint !

-Mel


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:10 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.