core-ajax go method not working

366 views
Skip to first unread message

2tadej....@gmail.com

unread,
Dec 25, 2014, 6:28:16 AM12/25/14
to polym...@googlegroups.com
I have this core-ajax element
    <core-ajax  
      id="ajax" 
      method="POST" 
      url="{{url}}" 
      params="{{item}}"
      handleAs="json" 
      response="{{response}}">
    </core-ajax>

and this function which is called when paper-fab is pressed.
submitLogin: function()
{
    this.$.ajax.go();
}

Uncaught TypeError: undefined is not a function
nolajn_prijava.html:90 Polymer.submitLogin     polymer.js:9123
events.dispatchMethod                                      polymer.js:10707 
(anonymous function)                                        polymer.js:1987
tap.up                                                                 polymer.js:813 
dispatcher.gestureTrigger


Regards

Tadej Golobič

Rob Dodson

unread,
Dec 29, 2014, 5:51:59 PM12/29/14
to 2tadej....@gmail.com, polymer-dev
did you include the import for core-ajax?

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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/524414ce-6243-438f-83ce-4ca8336bbcb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tadej Golobič

unread,
Jan 5, 2015, 2:19:08 PM1/5/15
to Rob Dodson, polymer-dev
Helou!

Yes, I did! I had a problem with querySelector :) Now it's working, thank you :)
V Mon Dec 29 2014 at 23:51:58 je oseba 'Rob Dodson' via Polymer <polym...@googlegroups.com> napisala:
Reply all
Reply to author
Forward
0 new messages