Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebBrowser Control
Message
De
02/09/2004 07:43:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
WebBrowser Control
Divers
Thread ID:
00938693
Message ID:
00938693
Vues:
59
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform