Hey Richard,

2009/1/23 Richard Ulrich <[email protected]>:
> Hi,
>
> I want to add a google maps window to my witty application.
> Google offers an ajax api. So far I haven't looked into the details, but
> I guess it should be possible to encapsulate it as with ExtJs.

True, but it would probably be easier since ExtJS requires a
combination of plain Wt widgets to provide contents inside ExtJS
widgets, and JavaScript code, making it more complicated.

The javascript example provides some indications on how to call
JavaScript code from C++, and bind C++ events to JavaScript -- it is
certainly a better starting place than the ExtJS integration. You
could use a WText or WContainerWidget to create the empty div which is
then used by google maps to render to. To load the Google JavaScript
library, you should use WApplication::require() (and take into account
that this automatically blocks JavaScript execution until after the
library has been loaded).

We would certainly be willing to help to work on such a widget.

Regards,
koen

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to