polymer form using paper-input and core-ajax

前端 未结 2 948
刺人心
刺人心 2021-01-03 13:37

i am working on a custom element that will serve as a form for sending map node data to a database using a restful service.

i have 3 questions about this element.

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 13:55

    It should work just OK. To invoke the go() give your ajax element an id so it is easy to access, ie

    
    

    attach an eventhandler to the button

    
    

    and implement the doSend() handler in your elements script section (do not forget to get rid of the noscript in the elements declaration)

    
    

    As of proccessing the data at server side - yes, you should look for the data in the $_POST.

提交回复
热议问题