Thanks Chris. I'm not getting the behaviour you describe in standard Safari, although I can replicate it in WebKit. A browser reload is ususally a sign that something has cause the onclick javascript to die, although I'm not seeing this in Firefox or Safari. What I did notice in Safari was that the server returned a 408 HTTP response, which is apparently something to do with a timeout.
For interest, I've logged all the headers in the two cases of logging in using ajax and logging in using the client. I've put these at the bottom of this message. The xhr has some extra headers: X-Requested- With, Pragma, Cache-Control. It has a different Referrer - http://burningchrome.com:8090/bags/IMP/tiddlers.wiki rather than http://burningchrome.com:8090/challenge/cookie_form; finally, I note that there is a difference in the request header "Content-Type": In the xhr request, "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" In the form submit, "Content-Type: application/x-www-form-urlencoded" When working with another system in the past, I ran into a problem where the server wouldn't accept the extra text on the Content-Type header. Could this be a problem? ------------------------------ xhr headers ----- http://burningchrome.com:8090/challenge/cookie_form POST /challenge/cookie_form HTTP/1.1 Host: burningchrome.com:8090 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv: 1.9.0.6) Gecko/2009011912 Firefox/3.0.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: TiddlyWiki 2.4.2 (beta 1) Referer: http://burningchrome.com:8090/bags/IMP/tiddlers.wiki Content-Length: 46 Cookie: txtMainTab=More; chkBackstage=true; txtMoreTab=Tags; tiddlyweb_user="jonl:614990300136552efca46dbeefccccc5e1e51cc4" Pragma: no-cache Cache-Control: no-cache user=jonl&password=jonl&tiddlyweb_redirect=%2F HTTP/1.x 401 Unauthorized Content-Type: text/html Transfer-Encoding: chunked Date: Tue, 10 Mar 2009 09:31:18 GMT Server: CherryPy/3.1.1 WSGI Server ---------------------------------------------------------- login form headers -------------- http://burningchrome.com:8090/challenge/cookie_form POST /challenge/cookie_form HTTP/1.1 Host: burningchrome.com:8090 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv: 1.9.0.6) Gecko/2009011912 Firefox/3.0.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://burningchrome.com:8090/challenge/cookie_form Cookie: txtMainTab=More; chkBackstage=true; txtMoreTab=Tags; tiddlyweb_user="peterf:0ffb21430209244a447a1d6df36d9dc9133c4506" Content-Type: application/x-www-form-urlencoded Content-Length: 46 user=jonl&password=jonl&tiddlyweb_redirect=%2F HTTP/1.x 303 See Other Set-Cookie: tiddlyweb_user="jonl: 614990300136552efca46dbeefccccc5e1e51cc4"; Path=/ Location: http://burningchrome.com:8090/ Transfer-Encoding: chunked Date: Tue, 10 Mar 2009 09:16:02 GMT Server: CherryPy/3.1.1 WSGI Server ---------------------------------------------------------- J. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
