Kirix is pleased to announce the availability of wxWebConnect -- a
library for wxWidgets that enables developers to quickly integrate
advanced web browser capabilities.
It wraps up functionality exposed by the Mozilla Foundation's Gecko
engine (XULRunner) into a set of user-friendly classes to: embed
browser controls, search web content, print web pages, interact with
the DOM, implement custom content handling for different MIME types,
issue POST calls using the current browser state, etc. Notably, with
this library you can also embed all of your favorite Firefox browser
plug-ins into your application.
With other libraries in the past, embedding a web browser control has
proven a daunting task, often involving compiling seemingly countless
sub-dependencies. We've gone out of our way to make sure that getting
a browser control up and running in your application is as easy as
possible.
More information can be found at the wxWebConnect project page
(http://www.kirix.com/labs/wxwebconnect.html). A short demo video and
some screenshots can be found here
(http://www.kirix.com/labs/wxwebconnect/screenshots.html)
We've released the full source code under the wxWindows license, so
please go ahead and use this library in your own applications freely.
Comments and criticisms are welcome.
All the best,
Benjamin I. Williams
Kirix Corporation (http://www.kirix.com)
Thrilled to see this. Thanks for the contribution.
I downloaded the source and tried to build it on Linux (openSuSE 11.1
i686) but the Makefile was missing ../top.mak
Anyway, I hand compiled using wx-config and the testapp got built.
However, when I run I'm not able to open any pages. Looks like some
issue with locating/loading the XULRunner.
Have a few questions (I know I should read the code but anyway):
* How is gecko loaded? When I linked the testapp I did not supply any
lib from Gecko. Is everything loaded at runtime?
* Last time I tried embedding gecko inside a wx app (using the new
embedding api) I had a few problems: I had to recompile XULRunner with
-fshort-wchar to get it to play nice with wxStrings.
Cheers,
--Krishna
--
I long to accomplish a great and noble task, but it is my chief duty
to accomplish small tasks as if they were great and noble !
-- Helen Keller
>> * How is gecko loaded? When I linked the testapp I did not supply any
>> lib from Gecko. Is everything loaded at runtime?
>
> Correct. The library is completely runtime bound, so you don't need
> to link to any library or have any extra include paths other than the
> wxWebConnect library itself.
>
>> * Last time I tried embedding gecko inside a wx app (using the new
>> embedding api) I had a few problems: I had to recompile XULRunner with
>> -fshort-wchar to get it to play nice with wxStrings.
>
> Probably because you used their glue library. We solved this problem
> by loading xulrunner at run time, not linking at compile time.
>
Awesome!