On Jun 26, 2:54 pm, Christian Biesinger <[EMAIL PROTECTED]> wrote:
> EliteLama wrote:
> > I'm too searching for an appropriate solution. Is there a way without
> > using non-frozen interfaces?
>
> No.
>
> > If this is not possible yet... which version of xulrunner and gecko-
> > sdk do I need to use nsIDocument, nsIScriptGlobalObject and
> > nsIScriptContext within Java and which jar-files to I need to add to
> > my project?
>
> You can't use those interfaces from Java. And if you could - a JSObject*
> is not something you can use from Java anyway, it's a C type...

Thanks for the quick answer. I know that "JSObject*" is a C type but
refering to http://java.sun.com/products/plugin/1.3/docs/jsobject.html
there is a java class in netscape.javascript.* called JSObject and I
think the C type JSObject and the java class JSObject have probably
the same behaviour. So is there a xulrunner / gecko sdk version which
contains these non-frozen interfaces?

Can I access JavaScript member variables with this way:
nsCOMPtr<nsICategoryManager> catman =
      do_GetService(NS_CATEGORYMANAGER_CONTRACTID);
  if (!catman)
    return NS_ERROR_FAILURE;

  nsXPIDLCString previous;
  catman->AddCategoryEntry(JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY,
                         "my_prop_name", "my_prop_contract_id",
                         PR_TRUE, PR_TRUE, getter_Copies(previous));

thx, in advance...
Christopher

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to