Re: libseed-list Call a Vala Function from Javascript



BTW, SeedKit [0] easy the burden of exposing native GObjects in a
WebView js context. Sadly I havent worked much on introspection/vapi
support now.

[0] http://gitorious.org/seedkit

Le vendredi 20 mai 2011 à 08:27 +0100, Andrew a écrit :
> Hi Everyone,
> 
> So I have a Vala function:
> 
> public void say_my_name(string name) {
>     stdout.printf("Hi, my name is %s", name);
> }
> 
> And I want to be able to call this in Javascript like so:
> 
> say_my_name("John Doe");
> 
> This Javascript however, is on a local HTML file, that I access through
> a Webkit.WebView
> 
> Could someone point to an existing example (can be in C), or just talk
> through the basic steps needed to acomplish this? If you need any more
> information, please don't hesitate to contact me.
> 
> Thanks
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]