Re: How to get current instance (nsIWebNavigation) of mozilla?

2004-07-16 Thread yueweng
"Mozilla.embedding" wrote in message news:<[EMAIL PROTECTED]>... > to get the domDocumen, you must load the web page like this : > "nsresult navrv > =webNav->LoadURI(NS_ConvertASCIItoUCS2(url).get(),nsIWebNavigation::LOAD_FLA > GS_NONE, >

Getting Context Menu Information from ActiveX COntrol

2004-07-16 Thread Jamie S
Hi, Ive posted this on the microsoft C++ forum but thought Id also post here as Im sure its a because im using the Mozilla control. Ive overridden the default context menu fine using showContextMenu, and have been able to obtain then context of the right click (link, image etc). However, on trying

Getting Context Menu Information from ActiveX COntrol

2004-07-16 Thread Jamie S
Hi, Ive posted this on the microsoft C++ forum but thought Id also post here as Im sure its a because im using the Mozilla control. Ive overridden the default context menu fine using showContextMenu, and have been able to obtain then context of the right click (link, image etc). However, on trying

missing enries of skin = content in installedüchrome.txt

2004-07-16 Thread L.Kovári
Hi All, I embedd a xul app into mozilla build. (include into allmakefiles.sh and Makefile.in, make a folder for mzxulapp, under the mozilla folder) The build success, (create the jar, create the folder of my xul app, under the /dist/bin/chrome). The build put into the installed-chrome.txt the en

Re: How to get current instance (nsIWebNavigation) of mozilla?

2004-07-16 Thread Mozilla.embedding
to get the domDocumen, you must load the web page like this : "nsresult navrv =webNav->LoadURI(NS_ConvertASCIItoUCS2(url).get(),nsIWebNavigation::LOAD_FLA GS_NONE, nsnull, nsnull, nsnull);" And then, you must register and implement a nsiWeb

How to get current instance (nsIWebNavigation) of mozilla?

2004-07-16 Thread yueweng
Dear all, I am wondering how do I get the instance of current browser, mWebBrower or webNav (see below). My code current hook on Mozilla.exe using nsIWebProgressListener? I would like to use the browser instance to do the following: nsCOMPtr webNav(do_QueryInterface(mWebBrower)); nsCOMPtr domDoc

Re: simple nsIWebProgressListener question

2004-07-16 Thread yueweng
Dear Christian, Thanks very much for your help. I managed to get the final problem solved regarding the crashed inside nsSampleImplConstructor(). Following the sample in nsPrefetchService.cpp. I realise that AddProgressListener() should be called inside Observe() function instead of the nsSampl