Hi,
I'm trying to do a post using jquery to a sammy route from a link but I keep getting 405 method not allowed.
If I do a similar post but to a server side url it works.
This is the link I'm using to post with:
<a href="#/bookmark/delete" onclick="$.post(this.href); return false;">Delete</a>
And this is the sammy route setup:
Sammy(function () {
this.use(Sammy.Title);
this.element_selector = '#content';
this.get('#/', function (context) {
...
});
this.post('#/bookmark/delete', function (context) {
alert('Foo');
});
}).run("#/");
Any help is highly appreciated.
Kind Regards,
Robert