Returns the next node that matches the specified search criteria. Use in combination with WebPageStatFindFirstNode. Possible search parameters are: URL, content-type of the response, document load-type (load, cache-hit, suppressed), document type (html or embedded), and the location within a redirection chain (a redirection chain is created when a request is retried or reissued because of a redirection or an authentication request by the server).
The return value is a node ID that can be used in other WebPageStatXXX calls.
To generally enable extended page statistics functionality, call WebSetOption with an option of WEB_OPT_DETAILED_PAGE_STAT (for a detailed description of the various values see WebSetOption).
WebAPI.bdh
WebPageStatFindNextNode( in sUrlFilter : string optional, in sContentTypeFilter : string optional, in nMatch : number optional, in nFlags : number optional ): number;
0 if the node can not be found
>0 otherwise
Parameter | Description |
---|---|
sUrlFilter | String to which the actual URL is to be compared. The nMatch parameter specifies the comparison method. When this parameter is omitted (null or “”), no URL comparison is performed. |
sContentTypeFilter | String to which the actual content-type (server response) is to be compared. The nMatch parameter specifies the comparison method. When this parameter is omitted (null or “”) no content-type comparison is performed. |
nMatch |
Specify one of the following values (optional):
|
nFlags |
Specifies the various options used by the search for the nodes. When this parameter is omitted the default options specified by the call to WebSetOption(WEB_OPT_DETAILED_PAGE_STAT) are used. Otherwise specify one of the following values:
|
dcltrans transaction TInit begin WebSetOption(WEB_OPT_DETAILED_PAGE_STAT, PAGE_STAT_FLAG_AllLoadedDocs); end TInit; transaction TWeb var nNodes : number; sUrl : string; begin WebPageURL("http://lab3/"); nNodes := WebPageStatFindFirstNode(null, "image/*", PAGE_STAT_MATCH_WildcardNoCase); while nNodes > 0 do WebPageStatGetNodeInfo(null, sURL); print("URL: " + sURL); nNodes := WebPageStatFindNextNode(null, "image/*", PAGE_STAT_MATCH_WildcardNoCase); end; end TWeb;