Hacker News new | past | comments | ask | show | jobs | submit login

Err... I may be missing something, but is there any way to POST data to a hashtag URL within the same page? You wouldn't be able to retrieve the posted data without some server-side cooperation. In fact you're not really doing a GET either in the example code, there is no HTTP action. This makes this not really a RESTful framework, but just a neatly structured event handler for onhashchange.

Edit: Oh I see from the docs, Sammy binds to form submit events ondocumentready and overrides them unless you return false from your route handler. Clever.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: