php - Social Media website refresh issue -
OK, so I'm in the process of creating a social network like Facebook (not that I'm going to make next Facebook I can try it, but so how can I learn it) Overall it's good to come, but I have some problems. My basic layout is that I have a postframe.fpp with all the loops in the database, and on the posts.php page, I load the postFrame.php dynamically with the jquery .load () function. I also refresh the table with the setmefunction function. It refreshes every five seconds. So my post loads dynamically on my post.fp page and refreshes every five seconds. In my post frame, at the bottom of each post, there is a place where you can comment on that post. (Just Like Facebook) The only problem occurs when typing in the comment box, it still refreshes and after five seconds it removes everything in the Textrera comment area.
Now, Facebook automatically loads any new posts and comments, and your comment does not disappear every few seconds. How are they loading new stuff and still not refreshing the texts in the post? My guess is that they (), But they use something else which I do not know about it, if anyone knows that any help is greatly appreciated! Thanks!
Use AJAX to get content Do not reload entire page Overview
Comments
Post a Comment