my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Ajax Newbie question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax Newbie question" Watch "Ajax Newbie question" New topic

Ajax Newbie question

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 116
Hi all,

This might be a very stupid question. But i did face it in an interview. The Question was Where exactly is the XMLHttpRequest created when ajax is used with java and How can java code have access to this object.

Could any one please help me out

With Regards
David Newton

Joined: Sep 29, 2008
Posts: 12617

An XMLHttpRequest is created on the client; it's a JavaScript object. On the server side it's just an HTTP request--Java has no direct access to JavaScript objects on the client side.
I agree. Here's the link:
subject: Ajax Newbie question
It's not a secret anymore!