form.send() caches Request destination #2446

Closed
djahandarie opened this Issue Nov 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

djahandarie commented Nov 19, 2012

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).

Owner

arian commented Dec 1, 2012

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 Dec 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment