[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/r9k/ - ROBOT9001


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


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?
>>
>>83084505
Erm I don't think pass is a valid javascript keyword
>>
>>83085617
maybe he copypasted from some python stuff
>>
>>83085658
>pasting python jquery into php
cursed
>>
>>83084505
That'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.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.