Modifies the html-parser to find additional hyperlinks (for subsequent WebPageLink functions) and URLs, which can be used in subsequent WebPageSetActionUrl or WebPageQueryParsedUrl commands. A name must be specified, which is assigned to the links and URLs. A CR or LF between the beginning of the left boundary and the end of the right boundary is not allowed.
More than one WebPageParseUrl statements can be placed before a page-level API call, resulting in multiple parsing rules applied concurrently during downloading of the page.
WebAPI.bdh
WebPageParseUrl( in sName : string,
in sLeftBoundary : string optional,
in sRightBoundary : string optional,
in nOptions : number optional ) : boolean;none
| Parameter | Description |
|---|---|
| sName | Name that is assigned to all links and URLs found. |
| sLeftBoundary | Left boundary string of the link or URL to search for (optional). If this parameter is omitted the parsing starts at the beginning of the document. |
| sRightBoundary | Right boundary string of the link or URL to search for (optional). If this parameter is omitted the parsing stops at the end of the document. |
| nOptions |
Set to any combination of the following flags:
If neither, WEB_FLAG_PARSE_URL nor WEB_FLAG_PARSE_LINK are specified a combination of the two flags is used. |
dcltrans
transaction TMain
begin
WebPageParseUrl("Continue", "load=\"", "\"");
WebPageUrl("http://lab3/shopit/", "ShopIt - Greetings");
WebPageLink("Join the experience!", "ShopIt - New Visitor");
WebPageSetActionUrl("Continue");
WebPageSubmit("unnamed", FORM_NULL, "ShopIt - Main menu");
end TMain;