Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Anybody want an XMLHttpRequest

172 views
Skip to first unread message

Benson Margulies

unread,
Nov 18, 2007, 12:13:08 PM11/18/07
to
I've implemented an XMLHttpRequest for Rhino following
http://www.w3.org/TR/XMLHttpRequest/ as part of Apache CXF. I suppose that
the Rhino project could decide to pick it up and incorporate it directly.


Attila Szegedi

unread,
Nov 19, 2007, 5:02:00 AM11/19/07
to Benson Margulies, dev-tech-js-...@lists.mozilla.org
Hi,

thanks for the suggestion, but Rhino's scope doesn't include browser
environment. I believe your work would be of interest to people who
build browser environments around rhino, i.e. HtmlUnit/HttpUnit and
likes.

Attila.

> _______________________________________________
> dev-tech-js-engine-rhino mailing list
> dev-tech-js-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Benson Margulies

unread,
Nov 19, 2007, 5:19:07 PM11/19/07
to
The W3C note seems to suggest that it's not implausible in non-browser
environment, but you're the guy in charge.

"Attila Szegedi" <szeg...@gmail.com> wrote in message
news:mailman.937.1195466529.352...@lists.mozilla.org...

Attila Szegedi

unread,
Nov 20, 2007, 3:36:49 AM11/20/07
to Benson Margulies, dev-tech-js-...@lists.mozilla.org
Well, to be precise, the W3C spec scopes it to a "user agent"
environment, and the spec itself requires a conforming user agent to
support a certain subset of functionality of the DOM3 Core and Events,
a subset of the Window Object 1.0 spec, and also have some intrinsic
HTTP support.

Rhino doesn't have any of these in itself, as it's just a core
JavaScript runtime.

The intent is to remain so, since JavaScript is today used in lot more
environments than HTTP user agents -- i.e. it's also the embedded
scripting language in the W3C CCXML specification, it is typically
found as an extension mechanism in XSLT transformers, and so forth.

Rhino can of course be used as a core component for a Java-based HTTP
user agent implementation. This is actually an often recurring theme
-- namely, a full HTTP user agent environment written in Java, with
Rhino providing JavaScript capabilities. That's why I mentioned
HttpUnit and HtmlUnit; they're both actually two examples (that I know
of) of this kind of a product.

Attila.

0 new messages