Did you enable jsinterop?

If you did, take a look at the generated javascript and see if it makes
sense.

On Tue, Sep 30, 2014 at 3:55 AM, Michael Vogt <[email protected]> wrote:

> Hello.
>
> Should it be possible right now to use JsInterop to use the facebook
> Javascript sdk?
>
> The call I want to use is  FB.XFBML.parse
>
> So I created 2 interfaces:
>
> @JsType
> public interface FB {
>   @JsProperty XFBML getXFBML();
> }
>
> @JsType
> public interface XFBML {
>   void parse();
> }
>
> I get FB through a native function getFB(). When calling
> getFB().getXFBML().parse(), the error message is "undefined is not a
> function"
>
> Should this work, or am I doing something wrong?
>
>
> Thanks,
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAAfA4Fyp3EjVWaHm7OMo3m_LiMZO7ARRDhRaxNpqRy--3_rYfg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA085_vskpnQSSAka9B_%3DkZzD66TJ-BC4OP6yefE3WGdJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to