Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

form.send() caches Request destination #2446

Closed
djahandarie opened this Issue · 1 comment

2 participants

@djahandarie
form.send();
form.action = "new";
form.send();

still sends the form to the old action, because it seems the generated Request is cached (presumably for performance reasons).

@arian
Owner

You can use the Request object:

var request = form.get('send');
request.send({url: "new"});

or I think this works too:

form.set('send', {url: "new"});
form.send()
@arian arian closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.