weixin_33704234 2015-08-24 17:22 采纳率: 0%
浏览 6

更新聚合物元素?

It's possible update a polymer element without reload page? If I do this with ajax, I have the error "a type with that name is already registered". What I can do?

  • 写回答

1条回答 默认 最新

  • python小菜 2015-08-25 05:52
    关注

    Flavio is right here. You need to change your PHP code.

    For example, change the PHP code to return, say, JSON of the result of sending a GET request, which would be the result of the SQL query.

    Then, in Polymer, create a component that calls that via Ajax. The component could update the aforementioned query from input values without need for a page refresh, including initially getting values from URL parameters.

    评论

报告相同问题?