How to roll out your own Javascript API with V8
1–9 of 9 posts
Re: How to roll out your own Javascript API with V8
#2https://github.com/olalonde/node-notify
Also available through NPM:
npm install notifyRe: How to roll out your own Javascript API with V8
#3I've recently ported the code to Node.js. I'll write about that whenever I have some time. https://github.com/olalonde/node-notify Also available through NPM: npm install notify
https://github.com/pmj/node-method-wrapper
It too is still work in progress, but it works pretty well so far. Note that it currently superficially relies on some node-specific extensions, though they should be pretty easy to remove, in order to use it with V8 alone.
Re: How to roll out your own Javascript API with V8
#4Offtopic: I have always wanted a tutorial for "Here is how to embed WebKit into your C++ application" (to make your own toy web browser). I realize rendering a webpage is only one very tiny component of a browser, but it's such an interesting one that I wish someone would put together a tutorial on how to do that.
Re: How to roll out your own Javascript API with V8
#5This is epic. Thank you! Offtopic: I have always wanted a tutorial for "Here is how to embed WebKit into your C++ application" (to make your own toy web browser). I realize rendering a webpage is only one very tiny component of a browser, but it's such an interesting one that I wish someone would put together a tutorial on how to do that.
For example, for WebKit there is Cocoa/Carbon integration[1], Cocoa Touch integration [2], KDE & Qt integration [3], GTK [4], etc. You can probably find others very easily, likewise for Gecko.
[1] http://developer.apple.com/library/mac/#documentation/Cocoa/...
[2] http://developer.apple.com/library/ios/#documentation/uikit/...
[3] http://api.kde.org/4.5-api/kdelibs-apidocs/kdewebkit/html/in...
Re: How to roll out your own Javascript API with V8
#6Re: How to roll out your own Javascript API with V8
#7This is epic. Thank you! Offtopic: I have always wanted a tutorial for "Here is how to embed WebKit into your C++ application" (to make your own toy web browser). I realize rendering a webpage is only one very tiny component of a browser, but it's such an interesting one that I wish someone would put together a tutorial on how to do that.
For embedding a web page display, you're probably best off looking at Webkit/Gecko wrappers for whatever UI toolkit you're using. Getting an image out of the renderer itself is one thing, but tying it into the surrounding windowing environment (using the platform's native widgets, responding to input, etc.) is less trivial. Fortunately, this work has usually already been done for you, and you'll find toolkit-specific…
(FYI I would be using .NET WinForms, so I doubt there's much open-source love.)
Re: How to roll out your own Javascript API with V8
#8Earlier quoted context omitted.
For embedding a web page display, you're probably best off looking at Webkit/Gecko wrappers for whatever UI toolkit you're using. Getting an image out of the renderer itself is one thing, but tying it into the surrounding windowing environment (using the platform's native widgets, responding to input, etc.) is less trivial. Fortunately, this work has usually already been done for you, and you'll find toolkit-specific…
Thanks for the info. However, what I really want is a simple "here is how to render a webpage with webkit" tutorial. (FYI I would be using .NET WinForms, so I doubt there's much open-source love.)
With that in mind - third Google result for 'embedding webkit in winforms':
Re: How to roll out your own Javascript API with V8
#9Earlier quoted context omitted.
For embedding a web page display, you're probably best off looking at Webkit/Gecko wrappers for whatever UI toolkit you're using. Getting an image out of the renderer itself is one thing, but tying it into the surrounding windowing environment (using the platform's native widgets, responding to input, etc.) is less trivial. Fortunately, this work has usually already been done for you, and you'll find toolkit-specific…
Thanks for the info. However, what I really want is a simple "here is how to render a webpage with webkit" tutorial. (FYI I would be using .NET WinForms, so I doubt there's much open-source love.)
Cool bonus feature: you can mark any objects you want to expose to the browser via javascript with the COM interop attribute and send them over to your homebrewed browser control. Qt's COM interop layer turns translates the Qt flavor of dynamic dispatch calls into IDispatch calls. So it works pretty seamlessly.