[cse491] this homework thing...

C. Titus Brown ctb at msu.edu
Sun Nov 29 19:49:01 PST 2009


On Sun, Nov 29, 2009 at 10:24:15PM -0500, Ryan Kelly wrote:
> I think I see what you mean. But I do want to query an XML file to check the user/pass combo right? That's the whole point with the AJAX right?

The real point of AJAX is to do queries without a full page reload (i.e.
asynchronously); the method of information encoding is not so important.
But using XML is simplest, since you already have functioning code that
does that (from the chat example).

The only thing to be encoded as XML is the *response* from the server
(yes you are logged in, here's a cookie/no you aren't, go away).  The
request for validation can be POSTed as in the chat example.

cheers,
--t



More information about the cse491-fall-2009 mailing list