Welcome Guest, Not a member yet? Register   Sign In
PHP live notification system like facebook
#1
Thumbs Up 

How to implement facebook live notification system when user comment on post without refreshing browser. Suggestion I found from googling are use jquery or websocket. Which method is good and how to use it.
KeepĀ calm.
Reply
#2

jQuery isn't a method, but a tool for implementing AJAX, which is very common and something to check out because it is super easy to use.
Reply
#3

(This post was last modified: 07-17-2015, 12:51 AM by arma7x.)

(07-16-2015, 10:59 PM)skunkbad Wrote: jQuery isn't a method, but a tool for implementing AJAX, which is very common and something to check out because it is super easy to use.
Thanks for explanation. Btw, does I need to set execution time for AJAX to retrieve new notification. Such as, retrieve every 5 or 10 sec. Does it's burden my server if to many request executed?
KeepĀ calm.
Reply
#4

I use jQuery for an ajax chat system i am developing as part of my CI3 App. I have the ajax request run avery 2 seconds and no extra 'burden' on my server.
"I reject your reality and substitute my own" - Adam Savage, M5 Inc.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB