On Nov 19, 4:02 pm, Nickolay Ponomarev <asquee...@gmail.com> wrote:
> On Thu, Nov 19, 2009 at 12:48 PM, testols ols <testing...@gmail.com> wrote:
> > I have integrated xulrunner in my application and am able to load
> > webpages to it. My main requirement is to invoke native application
> > function through webpage. Through webpage i want to indicate
> > application to close/terminate browser and if possible pass some
> > message to it.
> > I proceeded by implementing xpcom. I am able to invoke functions
> > through xpcshell.exe but when i try to invoke from webbrowser a dialog
> > box is poped up seeking permission from user. I want to bypass this
> > dialog.
>
> It's possible to make the component accessible to a web page (not through
> Components.classes, but through other means). These results seem relevant,
> although I haven't read it 
> carefullyhttp://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3...
> 1)http://www.julienlecomte.net/blog/2007/07/7/ (using the "JavaScript
> global property" category)
> 2)http://weblogs.mozillazine.org/weirdal/archives/017211.html
>
> If you need a simple way to communicate between pages and chrome, DOM events
> are a good choice -- simple to set up and doesn't even require an XPCOM
> component:https://developer.mozilla.org/En/Code_snippets/Interaction_between_pr...
>
> Nickolay


Hey Nickolay,
Thanks a lot for throwing light on it. I followed
http://www.julienlecomte.net/blog/2007/07/7/ and created a JS XPCOM
(.js and .xpt ) and stored them locally under folder 'components'. I
was able to call the JS from my web pages and XPCOM functions were
getting called properly.
Now i created one more XPCOM, this time c++ .dll and .xpt and kept
them at 'components'. I used regxpcom.exe to register the new xpcom
object once. I was able to call .dll functions from JS xpcom objects,
in a way interaction between two xpcom object.
This is how i was able to call .dll function through web page. :)
web page -> JS xpcom -> dll xpcom.

Thanks again
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to