Narwhal for webkit squirrel Fish engie

4 views
Skip to first unread message

ashish

unread,
Jul 27, 2010, 9:04:39 AM7/27/10
to Narwhal and Jack
Hi,

I wanted to know if Narwhal can work with webkit SFX engine.

and how i can build the code for the same.

Another question is, if I am using any stand alone JS engine (like
SFX or V8), then the how do i support the browser based objects like
XMLHttpRequest ?

Regards,
Ashish

Tom Robinson

unread,
Jul 27, 2010, 6:48:08 PM7/27/10
to narw...@googlegroups.com
Yup: http://github.com/280north/narwhal-jsc

The master branch only builds on OS X. There's a branch that works on Linux too but it's not completely up to date I don't think.

The Narwhal engine needs to implement XHR. If you use the version of narwhal-jsc that links against WebKit (OS X only for now) it comes with one. "make webkit" when you build it. 

I started working on an XHR implementation in JavaScript here: http://github.com/280north/browserjs Currently it's dependent on Java but I started converting it to use the simpler "http" module available in narwhal-rhino and narwhal-jsc.

-tom 


--
You received this message because you are subscribed to the Google Groups "Narwhal and Jack" group.
To post to this group, send email to narw...@googlegroups.com.
To unsubscribe from this group, send email to narwhaljs+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/narwhaljs?hl=en.


Ashish Agrawal

unread,
Jul 28, 2010, 5:57:51 AM7/28/10
to narw...@googlegroups.com
Hi Tom,
thanks for the reply,I ve another question.

If i want to support XMLHttpRequest object, can I do it without the presence of window or DOM object in webkit. I mean can i only utilize the JSEngine and bypass the webcore part.

Regards,
Ashish

Tom Robinson

unread,
Jul 30, 2010, 1:36:55 AM7/30/10
to narw...@googlegroups.com
Probably, but I haven't figured out a way to use WebKit's XMLHttpRequest without including all of WebCore.

The other option is to implement XMLHttpRequest separately, which I started doing with browserjs. It needs to be converted to use the "http" module though.

-tom
Reply all
Reply to author
Forward
0 new messages