How to hide a row of table (or a list item) and update the datastore without reloading the page?

前端 未结 2 1676
长发绾君心
长发绾君心 2021-01-28 16:11

I have a list of bookmarks displayed on a table. I added a \"hide\" link to hide a bookmark that I don\'t want to see on the list but I still want to keep (table and the hide li

2条回答
  •  攒了一身酷
    2021-01-28 16:46

    There's nothing App Engine specific here - you just need to make an AJAX request to your app to set the appropriate flag. JQuery is a pretty invaluable library for making this sort of work much simpler on the client end. On the server end, you just need a handler that gets the value to modify in a POST request, then modifies it and returns a status code. Your client side code can call that from AJAX.

提交回复
热议问题