Results 1 to 2 of 2

Thread: Need Suggestion On How To Get Automated Notification Simillar To Facebook

  1. #1
    Join Date
    Nov 2010
    Posts
    114
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default Need Suggestion On How To Get Automated Notification Simillar To Facebook

    Hi All,

    I am developing a app which has the functionality similar to facebook. I want to know how can i get notification like they have in their app. I have done everything, whenever i refresh my page i will get new notifications. But i dont want it to refresh everytime. It should be automated, whenever my friends comment on my post, i should get a notification in my page without refresh. That means i have to pull the data from database when ever there is any new row in my "db table".

    I have approached this by creating a div and through jquery i am refreshing it every(1)second. Page is not refreshing but my issue is every second i am interacting with DB to check new updates. This will be issue if i am having 1k members in my site. Is this correct approach? If not please let me know how can i get this solved?


    I heard about comet notification, but there are some issues with speed when my site user counts go more

  2. #2
    Join Date
    Mar 2011
    Location
    N 11 19' 0.0012 E 142 15' 0
    Posts
    1,509
    Thanks
    41
    Thanked 89 Times in 88 Posts
    Blog Entries
    3

    Default

    Using jquery with standard ajax will result in a lot of unneccasary requests to the server.
    In case you're curious, Facebook uses comet.

    Have a look at this jQuery plugin. I've never used it and it seems quite complex, but you could give it a try

Similar Threads

  1. automated assessment form?
    By supermegaultra in forum Looking for such a script or service
    Replies: 1
    Last Post: 07-01-2011, 10:49 PM
  2. Resolved Automated Email response?
    By danny_matthews in forum Looking for such a script or service
    Replies: 4
    Last Post: 04-16-2009, 11:18 PM
  3. Replies: 5
    Last Post: 09-27-2007, 03:13 PM
  4. Automated email receipt
    By Robbo in forum Other
    Replies: 0
    Last Post: 07-14-2006, 08:00 AM
  5. Automated Panoramic DHTML
    By dotcomtim in forum JavaScript
    Replies: 6
    Last Post: 01-13-2006, 02:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •