The reason I don't want to use ajax for this is because the part I want to update is actually a compilation plugin implemented by another. I just posted the script fragment that they provided in my html code and it shows part of the comments in my articles. Since this is not a live comment, I want to add an refresh button next to it so that users can simply update the commenting part to get the latest comments without requiring a full page reload.
Therefore, I think iframe is an option for me. But the problem is that I need to specify the src iframe attribute. I don't know what value I should use, because all I have is just a fragment of a script. Can anyone give me any idea on this?
By the way, the code snippet looks like this:
<div id="uyan_frame"></div> <script type="text/javascript" id="UYScript" src="http://v1.uyan.cc/js/iframe.js?UYUserId=1674366" async=""></script>
source share