Hey, all- As far as I can tell, there is no good way to access the headers of a successful POST made via jquery.ajax. So, two things:
(1) everything I know about jquery I've learned in the past 7 hours. So that last statement may be wrong; if anyone here can clarify, that would be terrific. :) (2) if I'm correct, and I can't get to that header, then when I create a new action with a POST to todos.xml from jquery.ajax, I can't actually take someone to the action they've just created, or otherwise programatically access it/modify it/etc., since that information is in the location header rather than in the data. As I understand best practices for POST[1], it would be good to return the URI (or perhaps even simpler just the action's ID number?) in the response, not just in the header. I'd be much obliged for my little project if someone would help that happen in git, or at least point me at the right place to make it happen. Thanks- Luis [1] See RFC 2616 sec. 9.5, which says "If a resource has been created on the origin server, the response SHOULD be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource, **and** a Location header" (emphasis mine) _______________________________________________ Tracks-discuss mailing list [email protected] http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
