R
R
Rabinzon2015-06-02 20:44:00
JavaScript
Rabinzon, 2015-06-02 20:44:00

How to update data in template using ajax?

Hey!
I wanted to implement the removal of a block from the page, without reloading.
With get , node sends data directly to the template.
With post, I get a new array of elements in response. but I don't know how to update the template without reloading.
codepen.io/anon/pen/mJWVRP

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rabinzon, 2015-06-02
@Rabinzon

Made it easier. I delete the object in the database, if the status is 200 ok, and already on the client I simply delete the desired block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question