Ajax compatible url strategies?

2007-12-21 Thread Erik van Oosten
Hello, Our client is really into Ajax /and/ bookmarkable URLs. What would be the best way to intercept and interpret anchor parameters (e.g. after the '#' in the URL)? Do I have to write my own UrlCodingStrategy? What would be the best way to change the URL when an Ajax link was clicked? Is

Re: Ajax compatible url strategies?

2007-12-21 Thread Matej Knopp
Hi, sorry, it's not possible to do. The part after # (hash) never gets to the server. It's client only. Unless you e.g. use xmlhttprequest to post it to server after the page has been loaded. And the only way that change url on client without reloading the page is changing window.location.hash

Re: Ajax compatible url strategies?

2007-12-21 Thread Erik van Oosten
Hi, The part after # (hash) never gets to the server...Unless you e.g. use xmlhttprequest Ah. Didn't know that. But I can live with that. So I'll have to add a handler on each page to detect # parameters and do a new (perhaps Ajax) submit. Of course the handler should only fire upon a reload or