W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: Problem registering link callback

From: Vaclav Barta <vbar@comp.cz>
Date: Thu, 02 Sep 1999 17:39:08 +0000
Message-ID: <37CEB63C.9B853556@comp.cz>
To: www-lib@w3.org
Matt Johnson wrote:
> I've created a simple client application using HTProfile_newPreemptiveClient for the profile.
> I've created a link callback function and registered it with 'HText_registerLinkCallback'.
> The problem is that my callback function doesn't get called at all.  I'm using HTLoadToChunk to
> retrieve a web page.  Is there something else I need to do to parse this chunk?  I assumed it
> occured when downloading the page.
Well, callbacks are called during download, but the download
is asynchronous - it isn't complete (AFAIK it isn't even started)
by the time control returns from HTLoadToChunk. To get registered
requests going, you must call HTEventList_newLoop.

Disclaimer: I never tried to use HTProfile_newPreemptiveClient
nor HTLoadToChunk, so YMMV... :-)

I have a web spider, too!
Received on Friday, 3 September 1999 13:36:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC