No internet connection
  1. Home
  2. Support

How to load comments dynamically on a JS app?

By Dashamir Hoxha @dashohoxha2021-04-02 04:57:52.404Z

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?

  • 2 replies
  1. D
    Dashamir Hoxha @dashohoxha2021-04-04 00:06:13.418Z

    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.

    1. Progress
    2. D@dashohoxha closed this topic 2021-04-04 00:06:42.419Z.