Hi,
I have a next problem.
I using WebBrowser control to create application interface
I display html in the webbrowser control as:
Function CustomNavigate
LPARAMETERS tcPage
lcHTML = This.bbay_wwc1.mmks_getpage(tcPage)
With THis.oleWebBrowser
.Navigate("about:blank")
lnStartSeconds = Seconds()
Do While .ReadyState <> 4 ;
AND (Seconds()-lnStartSeconds <= 1 )
DoEvents
Enddo
.Document.Open()
.Document.Write(lcHTML)
.Document.Close()
Endwith
In this page I have a hyperlink. for example "myapp://customerinfo"
I'd like to catch it and generate new page in same webbrowser control when I click on hyperlink.
Problem is:
I place code to BeforeNavigate2
IF "MYAPP://"$url
Cancel = .t.
loExplorer.CustomNavigate("customerinfo")
ENDIF
But.... in BeforeNavigate2 url parameter is empty!.. and browser display error page (page not found) Why?