Thanks Chak,
I followed the mfcEmbed implimentation of prompt service, infact I registered
the
"mfcEmbedComponents.dll" as a prompt service in my application. But after
loding
a html page and making an alert request (or anything similar that opens a
message box) it throughs a following error :
###!!! ASSERTION: NS_ENSURE_TRUE(prompter) failed: 'prompter', file
D:\Mozilla91
\mozilla\dom\src\base\nsGlobalWindow.cpp, line 1575
JavaScript error:
line 0: uncaught exception: [Exception... "Component returned failure code:
0x8
0004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.alert]" nsresult:
"0x80004005
(NS_ERROR_FAILURE)" location: "JS frame :: http://www.contentguard.com/ ::
vali
date :: line 117" data: no]
Any idea? Any suggessions will be a great help.
Thanks,
Ram..
Chak Nanga wrote:
> Please see embedding\tests\mfcembed\components dir to see how the prompt
> service is implemented in a separate component.
>
> Also take a look at, CMfcEmbedApp::OverrideComponents() in file
> mfcembed\MfcEmbed.cpp to see how the default PromptService is overridden.
>
> Chak
>
> rsnavale wrote:
>
> >Hi,
> >
> >In my embedding application, I am not able to get any promts. None of
> >the Alert or
> >Security alerts are poping up. I believe, I need to implement the
> >interface (nsIPrompt, but this is not implemented in latest version of
> >mfcEmbed) or register
> >prompt service to the docShell. But don't know HOW?
> >
> >Can any one help me to understand how the prompt servoice works?
> >
> >Thnaks,
> >Ram.
> >