Re: How to get / set charset in an embedded browser

2006-01-08 Thread Anton Bar
A short test with nsIDOMNSDocument.charset property shows that the embedded window uses an incorrect charset despite the fact we specifically state the Hebrew charset in a META tag. Is this happening over HTTP? What headers does the server send? Yes. Server (in our case IIS) sends only

Re: How to create ActiveX control in Javascript

2006-01-08 Thread Anton Bar
I use Plug-in For Hosting ActiveX Controls. But I am not sure if it can be used in Javascript to create the ActiveX control. Can anybody help me? Thanks. IMHO, JS in Mozilla can't create/call ActiveX. Your plugin, however, can be scriptable. Then your JS calls the plugin, which will call

How to get / set charset in an embedded browser

2006-01-03 Thread Anton Bar
Hi all, We embed mozilla and it works fine with western encodings and Unicode. However, when we use documents in Hebrew Windows-1255 encoding, the text is displayed as question marks. A short test with nsIDOMNSDocument.charset property shows that the embedded window uses an incorrect charset

Why my PresShell is always NULL?

2004-09-20 Thread Anton Bar
Hi all, I have M16 embedding app on Windows. When application starts, I create web browser (like in MfcEmbed) and call nsWebBrowser::Activate() - it works fine! But when I call then nsWebBrowser::Deactivate() it doesn't work. Debugging into Mozilla code shows that my DocShell has NULL PresShell

Re: Why my PresShell is always NULL?

2004-09-20 Thread Anton Bar
Béatrice Philippe wrote: maybe you released some xpcom services before ? thank you for the prompt answer I did some further investigation and it seems that the PresShell is fine after any document is loaded (via LoadURI). Nevertheless, Deactivate would not remove focus from the browser's

Print hangs in Preparing dialog

2004-08-31 Thread Anton Bar
hi all i'm trying to print in my embedding app but it doesn't print and forever hangs in preparing dialog. please help ___ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding

Do I need to call NS_InitEmbedding in a plugin that use XPCOM?

2004-08-22 Thread Anton Bar
Hi all, I have a plugin that use XPCOM. Somewhere in the plugin's code I call do_CreateInstance. It returns NULL and when I step into it in debugger I see that the implementation file does absolutely nothing. This brings me to the question: do I need to call NS_InitEmbedding in a plugin that

Simple question about the MfcEmbed sample

2004-08-18 Thread Anton Bar
Hi all, I have MfcEmbed sample compiled on Mozilla 1.6. My question is how it's supposed to work on computers with Mozilla 1.7? The problem is that, according to the Dependency Walker, MfcEmbed links XPCOM.DLL, which might be different. What good the whole idea of embedding if I must compile a

Problems of compatibilty with different versions of XPCOM.DLL

2004-08-16 Thread Anton Bar
Hi all, I have an embedding application compiled using M16 source tree. It works great with M16, but it doesn't work on computers with M17 and above. According to the dependency viewer, my app's exe won't load because XPCOM.DLL installed with M17 differs from the one I used to build my

Inputs of HTML forms don't work in emb. browser - URGENT - PLEASE HELP

2004-07-27 Thread Anton Bar
Hi all, I have an embedding app that loads various HTML content into the embedded Mozilla 1.6. Everything works fine, except the following: 1) Combo boxes don't work (cannot select any item, it's stuck on the default) 2) Edit boxes can't get neither input nor focus 3) TAB and SHIFT-TAB doesn't

How to use default window creator?

2004-07-15 Thread Anton Bar
Hi all! How can I make my embedded browser to use default window creator for prompts, alerts and new browser windows? Currently my chrome doesn't implement nsIWindowCreator, but the embedded browser still doesn't open no alerts neither new windows. Any info will be very appreciated! TIA,

Re: What's the right way to do POST from an embedding app?

2004-07-04 Thread Anton Bar
I made few mistakes in my previous note, following attached a working code. Please note that mystrstream is a little wrapper for ostrstream. Its code is also attached below. Greetings from Israel, Anton. _ static inline

problem using combo boxes in embedded mozilla

2004-07-04 Thread Anton Bar
Hi all. Selection of combo boxes doesn't change in my embedded app. When I open the same webpages with plain Mozilla, everything works fine. PLEASE HELP! Many thanks in advance, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED]

Call Java Script code in embedded browser

2004-06-17 Thread Anton Bar
Hi all, I have embedding application similar to mfcEmbed and I'm looking for a way to call java script functions that are located in a page loaded by the embedded browser. Ideally I would need to get their return codes, but this is an expendable luxury. Many thanks in advance, Anton.

How to call parent browser from a plugin

2004-06-07 Thread Anton Bar
Hi all, How can I call parent browser from a loaded plugin? I'm looking for a way to get poiter to it's browser or to its chrome object, but any other way will do as well. TIA, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED]

Re: mfcEmbed.dsw won't load in VisualStudio 6.0 SP5

2004-06-02 Thread Anton Bar
Mozilla dsps come alright by default with 0d/0a (cr/lf), therefore, if fixed incorrectly, you can end up with double cr (e.g. crcrlf instead of cr). IMHO the problem is that the default dsp are designed only to invoke makefiles. If you want to compile from within visual studio you should

Re: mfcEmbed.dsw won't load in VisualStudio 6.0 SP5

2004-06-02 Thread Anton Bar
oh sorry, mea culpa, i looked at my own dsp :( never mind, the important thing is that it cannot compile as is i think i've read it somewhere that the build uses the dsw to run on windows, can't recall why... as a guess i would say that it needs it to control the dependencies. msvc allows to

Re: mfcEmbed.dsw won't load in VisualStudio 6.0 SP5

2004-06-02 Thread Anton Bar
Hi Randy, Linking errors mainly follow from wrong run time library. Please make sure you use Debug Multithreaded DLL for debug and Multithreaded DLL for release version. Attached my own my precious DSP file. Cheers, Anton. # Microsoft Developer Studio Project File - Name=myembed - Package

Re: mfcEmbed.dsw won't load in VisualStudio 6.0 SP5

2004-05-30 Thread Anton Bar
don't hesitate to ask for further info. Greetings from Israel, Anton Bar. Randy wrote: Béatrice, Thanks for the info, I'll try that. I have to use VStudio for my compilation because I'm working on a project for my company and they don't want to switch other developers over to gcc. I'd

Re: Simulate click and set text event

2004-05-13 Thread Anton Bar
[EMAIL PROTECTED] wrote: Hi, I want to click and set text automatically on a button and textfield of a document respectively, from my C++ component. Help me to achieve this. Thanks in advance. Regards A.SathishKumar I'm not sure I understood correctly, but if you need to do this from an

Use XUL in embedding application

2004-05-10 Thread Anton Bar
Hi all, How can I call XUL (e.g. show a context menu or a simple dialog) into my embedding application? I could easily use a native widgetry but I'd like it to be as XP as it gets. TIA, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED]

Access embedding application from a page into embedded browser

2004-05-06 Thread Anton Bar
Hi all, How can I call methods of my embedding application from an HTML page loaded by an embedded browser? TIA, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding

Call JavaScript in embedded browser from embedding application

2004-05-04 Thread Anton Bar
Hi all, Is there any possibility for embedding application to call java script loaded by a page into embedded browser? TIA, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding

Re: call xpcom from plugin (getting desperate :-( )

2004-05-04 Thread Anton Bar
is was compiled before commenting out the method. Anton Bar wrote: Hi all, This is in addition to my previous message posted yesterday called Failed to call XPCOM.. I've tried the same code in MfcEmbed sample and it works fine. I've compared all preproc values and they are very similar. I've also compared

how to disable selection

2004-05-04 Thread Anton Bar
Hi all How can I disable content selection in the embedded browser. I thought to catch mouseDown etc. but I have a feeling that there might be a simpler way to do that. TIA, Anton. ___ mozilla-embedding mailing list [EMAIL PROTECTED]

Re: Call JavaScript in embedded browser from embedding application

2004-05-04 Thread Anton Bar
Thanks aplenty!! QI your embedded browser for a poitner to the nsIWebNavigation interface, and then call LoadURI with a string of the form javascript:expr where expr is some Javascript expression (including a Javascript function, complete with parameters).

call xpcom from plugin (getting desperate :-( )

2004-04-29 Thread Anton Bar
Hi all, This is in addition to my previous message posted yesterday called Failed to call XPCOM.. I've tried the same code in MfcEmbed sample and it works fine. I've compared all preproc values and they are very similar. I've also compared the included files, they are the same. I will very

Re: Fail to call XPCOM from Gecko plugin

2004-04-28 Thread Anton Bar
Thank you for a quick reply. 1. My try/catch handles my own exceptions thrown by TESTRES macro (please see my sample) 2. I use MS VC 6 on WinXP for both Mozilla and the plugin Benjamin D. Smedberg wrote: Anton Bar wrote: Hi all, I'm trying to call XPCOM from my Gecko plugin (based

Re: Can plugins call JS of the web page that holds them?

2004-04-26 Thread Anton Bar
Anton Bar wrote: Hi all, Can Gecko plugins call Java script methods of the web page that opened them (has their EMBED ... tag)? Many thanks in advance, Anton. I think I've found smth: http://www.mozilla.org/projects/plugins/bi-directional-plugin-scripting.html If anyone has smth to add, please

How to extend interface of embedded web browser

2004-04-26 Thread Anton Bar
Hi all, I work on an app that will embed Gecko web browser. I need to add some functionality to this browser so that the script that runs inside a web page loaded into the embedded browser would be able to call a method of my application. Is there any way to do it? Many thanks in advance,

Re: Is XPCOM installed by default with Mozilla?

2004-04-19 Thread Anton Bar
will gratefully appreciate if you could, please, give a hint how to proceed. Again, many thanks for your help. Best regards, Anton. Benjamin D. Smedberg wrote: Anton Bar wrote: I want to write a plugin that will use XPCOM. I have to make it as small as possible (avoid static linkage). I have

MfcEmbed DSP

2004-04-13 Thread Anton Bar
Hi all, I'm trying to build MSDEV project (DSP/DSW) for the MfcEmbed project (the existing project only calls to an external Makefile). Is there anybody that can give me a boilerplate project or point me to a relavant link? Many many thanks in advance, Anton.

Re: Embedding Gecko in IE

2004-03-20 Thread Anton Bar
Find and register the Mozilla ActiveX DLL (regsvr32 mozctl.dll). I think it is not registered by default in the setup. Dan wrote: Wow, that's great news. But I couldn't get it to work on my PC. I guess there is some more setup I have to do? Which raises an interesting question. What would it

Re: Control over the embedded component

2004-03-13 Thread Anton Bar
this email box: [EMAIL PROTECTED] Warmest greetings, Anton. Jan Schukat wrote: Anton Bar wrote: 1. Can I have a complete control over UI of the embedded component? For example, can I modify or even completely replace the default context (right click) menu? Can I also have a control over

Control over the embedded component

2004-03-11 Thread Anton Bar
Hi all, Sorry for possibly stupid questions, I'm new here. I'm planning to embed Mozilla into some application and have the following questions: 1. Can I have a complete control over UI of the embedded component? For example, can I modify or even completely replace the default context (right