What is the difference between response="" and on-core-response=""

How do I receive the response once the form is submitted through AJAX?

PHP:
<?php
//Capture all inputs - $request_body = file_get_contents('php://input');
echo 'Your email is subscribed to our mailing list.';
?>

HTML:
...
</form>
    <core-ajax id="ajax" method="POST" url="r.php" params="{{item}}" 
response="{{response}}"></core-ajax>
    <template repeat="{{response}}">{{data}}</template>
    {{response}}
<br>
  </template>
  <script>
    Polymer('add-node', {
      created: function() {
        this.item = {};
      },
      doSend: function() {
this.$.ajax.go();
      },
*  handleResponse: function(e) {        //Don't seem to work?*
* console.log("You got mail!");*
*      }*
    });
  </script>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/bdcb8f35-5e7c-46ff-a25f-72fddc0ad147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to