Navigates to a resource identified by a Uniform Resource Locator (URL), to the file identified by a full path, or to a pointer to an item identifier list (PIDL).
Object.Navigate ( pvURL [, pvFlags] [, pvTargetFrameName] [, pvPostData] [, pvHeaders] )
The Navigate method syntax has the following parts:
Name |
Type |
Description |
Object |
ALog |
ALog control |
pvURL |
Var Variant |
A caller-allocated string that contains the URL , UNC or PIDL to navigate to or the full path of the file to display. |
pvFlags |
[Var] Variant |
Optional. Address of a variable that specifies whether to add the resource to the history list, whether to read to or write from the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by the BrowserNavConstants enumeration (see Microsoft WebBrowser control for more information). |
pvTargetFrameName |
[Var] Variant |
Optional. Address of a string that contains the name of the frame in which to display the resource. |
pvPostData |
[Var] Variant |
Optional. Address of data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL. |
pvHeaders |
[Var] Variant |
Optional. Address of a value that specifies the HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL. |
The pvURL is specified in "protocol://server/page" format. It can be used to specify file or a folder located on your local or network drive or on the internet. Supported protocols are the same as the current Microsoft Internet Explorer.
Calling the Navigate method may be a lengthy operation. If this is called within a form or a control event , it is advised to call DoEvents() to process additional events occurred as result of calling this method before calling additional ALog properties or methods.
The following example will navigate to a URL or a file:
log1.Navigate("http://www.MarvinTest.com/ATEasy/")
log2.Navigate("file://c:/temp/a.log")
log3.Navigate("c:\\temp\\a.log")