How to load comments dynamically on a JS app?
作者：Dashamir Hoxha @dashohoxha
I have an app whose content is updated with JS (AJAX). I would like the comments to be updated too when the content is updated. First of all, I can use a
data-discussion-id to specify the comments that should be loaded. But I don't see how to refresh or reload the comments.
Currently the comments are in disqus and the implementation looks like this:
Any idea about how to do the same thing with TY?
- 1 回复
- Dashamir Hoxha @dashohoxha
Never mind. I found some way to make it work:
I am not sure if this is the best way, and I see some error messages on the console, but it seems to work anyway.
- @dashohoxha closed this topic 2021-04-04 00:06:42.419Z.