| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| DAvid: Thanks for the further hint ! -Mel |
|
#4
| |||
| |||
| "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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| "N:dlzc D:aol T:com (dlzc)" <dlzc1@cox.net> wrote in message news wumk.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 |
|
#8
| |||
| |||
| //-----------------------------------------------------------------------// PROCEDURE Main() LOCAL cHtml, oIE oIE := CreateObject( "InternetExplorer.Application" ) oIE:Navigate( "http://www.xHarbour.com" ) WHILE oIE:Busy SecondsSleep( 1 ) END ? oIE ocument:Body:innerHTMLRETURN //-----------------------------------------------------------------------// Ron |
|
#9
| |||
| |||
| Ron: Thanks for the hint ! -Mel |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.