Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,
how can i make notification counter like facebook notifications in the top left of the page , the question is

how to make this counter and update a value using javascript or asp.net
i want to make something like that , that is updated every 5 min. with the new counter.:confused:

if anyone can help me with some code tips , it will be greatful

thanks and regards, :)
Mina Jeffrey
Posted
Updated 5-Sep-10 4:39am
v3

Use setTimeout to call your server. Make sure you place the handler very small so that it does not overload the server.

Call the server using AJAX.
 
Share this answer
 
Comments
Mina Jeffrey 7-Sep-10 6:44am    
Thanks Abhishek
For this to be implemented in ASP.NET, you need to have a timer control that will be executed every 5 min or so. On execution, based on the result, using Javascript, you need to update the counter.
 
Share this answer
 
Comments
Mina Jeffrey 5-Sep-10 8:20am    
thanks sandeep for your reply , sure its helpful but i was thinking how can i do this !
Mina Jeffrey 5-Sep-10 8:54am    
Reason for my vote of 4
thanks
Use Xml Http Request its very fast and faceboos use it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900