Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser Control
Message
From
02/09/2004 07:43:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
WebBrowser Control
Miscellaneous
Thread ID:
00938693
Message ID:
00938693
Views:
58
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?
Next
Reply
Map
View

Click here to load this message in the networking platform