Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 06 JAN 2004 03:12:58PM Wayne Shepard wrote:

Hey, folks… having retrieved a web page into shell.explorer, is there any way to access it programmatically? I'd like to process the text, but can't find any way to it!

Help is appreciated…

Wayne


At 06 JAN 2004 03:47PM Bob Carten wrote:

if your control is OLECONTROL_1 try

content=Get_Property(@window:'.OLECONTROL_1', 'Document.Body.InnerHtml')


At 06 JAN 2004 04:25PM Steve Smith wrote:

Another way is to download the page using Basic+ alone, and then parse the page as a regular basic variable. The download code is only about 120 lines. The parser would be more effort, especially if the HTML changed format often.


At 07 JAN 2004 12:50PM Wayne Shepard wrote:

This is actually what I wanted to do in the first place, but haven't been able to find any documentation for shdocvw.dll. Do you know where such exists? Or do you have instructions for how to download a page using basic+ alone? 'Cause I don't know how and that's why I went the route of the window and the OCX object.

Wayne


At 07 JAN 2004 12:55PM Wayne Shepard wrote:

Thanks Bob, that worked. And it makes sense too.

Wayne


At 08 JAN 2004 07:33AM Steve Smith wrote:

Wayne,

The technique/source for downloading a web page (not using any third party controls) will be released (with many other routines) in the near future. If the solution you have via Bob Carten works, then you're probably in front - his code is better than mine ;-)

Cheers,

Steve


At 08 JAN 2004 09:13AM Bob Carten wrote:

]]If the solution you have via Bob Carten works, then you're probably in front - his code is better than mine ;-)

For instance, if you were at the Las Vegas Revelation Conference you would know that Steve's code can only compose and play original symphonies, while mine can play any .wav file on the hard drive.

In this case, I believe Steve enables Basic+ to reading pages from the engine without using the presentation server, which has amazing potential:

- Symbolics which convert a table of links into the html - The web is now part of our filing system

- Inet_BFS:

  Use tables via OECGI, you could attach a table, use it like a normal table, when the reads and writes are really going over the internet

- E-Mail

  1. drive SMTP directly
  1. Instead of MAPI, drive the MS Outlook web interface. You can then use one central exchange server from anywhere in the world

- Forums

  1. Read and Post to your favorite forums

- Web Services

  1. Steve opens the door to using OI to consume web services, which is a big step toward enabling OI to function as XML middleware.
  1. OI can interact with .Net applications

… too bad his code is no good


At 10 JAN 2004 06:13AM Steve Smith wrote:

Bob,

So far I have web page download, ping and time server synchronization working reliably.

I have code for POP and SMTP in development presently.

I've used non-blocking sockets, which is a little more difficult to write than blocking ones, but I believe this will offer better handling - you don't get hung socket connections in event of error or disconnect, just convenient ability to handle timeouts within the code.

The idea was to write this functionality within the language itself,

not to have the grief I had in VB with buggy third party communications controls.

Bob, email me for a copy - I don't have your email any more.

I'll be releasing the library commercially after a period of extensive testing.

steve @ state-of-the-art.com.au


At 10 JAN 2004 11:41AM Bob Carten wrote:

Cool Stuff

E-mail on its way

Bob

bob@revelation.com

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/28b8ce4149e1fcb785256e13006f0d0c.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1