From: alexandroid <kamot...@gmail.com>
Date: Wed, 21 Mar 2012 09:25:23 -0700 (PDT)
Local: Wed, Mar 21 2012 12:25 pm
Subject: Re: Getting a 405 when using $.post with sammy
Well are you sure that "$.post(this.href)" does what you want? I.e.
that this.href points to the right location? Are HTTP post requests even supposed to with with Javascript hash tags in them? ~Alex
On Mar 20, 1:54 am, devghost <robertbl...@gmail.com> wrote:
> To follow up, if I do an ordinary form post such as shown below. It works
> as it should. > But somehow I can't get it to work when I want to do a post from a link. My > guess, as > I look into it more is that it probably doesn't have anything to do with > Sammy, just me > doing something wrong... > This works:
> And this doesn't, giving a 405:
> Kind Regards,
> Den måndagen den 19:e mars 2012 kl. 21:47:10 UTC+1 skrev devghost:
> > Hi,
> > I'm trying to do a post using jquery to a sammy route from a link but I
> > This is the link I'm using to post with:
> > And this is the sammy route setup:
> > this.get('#/', function (context) {
> > this.post('#/bookmark/delete', function (context) {
> > }).run("#/");
> > Any help is highly appreciated.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||