ember.js - Ember Form Submission -


I am trying to implement payment modules in amber. I have created a form and form action from that server address To which the form will be submitted.

  & lt; Form action = "https://api.mondido.com/en/ V1 / transaction" id = "payment_size" & gt;   

In simple jquery I should do something like

  var onSuccess = function {transaction} {alert (transaction.id); }; Var onError = function (error) {warning (error.description); } $ ('# My_form'). Mondido ({type: "Ajax", success: onsuit, error: on irrender});   

But I want to wrap around in some action in the controller. The problem is that when I do something like this

  & lt; Form action = "https://api.mondido.com/en/v1/transactions" id = "payment_form" verb {{somefunction = "submit"}} & gt;   

The action is being said twice, to try it first, click on the submit button twice and then it is being presented twice.

Any idea how to go around with it? It is probably because you have two actions defined in your action from your form tag

action = "https://api.mondido.com/en/v1/transactions"

, and handle the form submission in your controller.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -