I'm making a website comment box and I want it to update only when new comments have been posted.I can make it refresh every 3 seconds but I dont want that.Picrel didnt work. Why nut?
>>83084505Erm I don't think pass is a valid javascript keyword
>>83085617maybe he copypasted from some python stuff
>>83085658>pasting python jquery into phpcursed
>>83084505That's not Javascript.You could avoid jquery by creating a hidden reference div that contains placeholder content. When you need to update or load posts you get your response from mail_getposts.php and then copy a reference comment into your visible comments area, and replace content with your post content.If you hash your posts you can even make things indexable within the page by appending the hash to the id field of each comment container/div.t. Built a Youtube clone in 2020 using PHP.