Home | Forum | Unread | Sign in | Sign in
Wirebird
Forum

blogs > rest > main

A blog on the implementation of Wirebird as a RESTful web service and web site.
Subscribe | Unread | Recent | Group options | Topic options | Post
KarenCravens
Karen Cravens

Sat

Sep 15
2007

02:06



Wikify

jQuery and HTTP responses

You may remember me griping in July about Mochikit not handling the full range of HTTP responses correctly. I griped on the rest-discuss list about it, and was referred to jQuery.

And I've been pretty impressed with jQuery overall, and I'm writing the Javascript version of logging in/registering (because the HTML-only version is tedious). A successful login POSTs to /profile/{username}/session, and gets redirected (via 303 See Other) to /profile/{username}.

And guess what? jQuery's .ajax treats a 303 as... an error.

Bah.

Subject (required)




 
Refresh