Twitist Forums
How do i build a notification system like in Facebook and stuff using Dreamweaver? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: General facebook and life forums (/forum-25.html)
+--- Thread: How do i build a notification system like in Facebook and stuff using Dreamweaver? (/thread-137124.html)



How do i build a notification system like in Facebook and stuff using Dreamweaver? - Sam Farhan - 04-08-2014 09:20 PM

I'm using Dreamweaver CS6 and WampServer as my database. I'm trying to figure out how to create a notification system to view data as numbers, such as : There are 2 new complaints. Something like that. Anyone here can help?


- Jane - 04-08-2014 09:26 PM

it sound a litle hardly

You should reading about websocket
No!!

Use a websocket


- Chris - 04-08-2014 09:28 PM

DreamWeaver is not going to help you build this. It will only get in the way.

You need to learn PHP and AJAX for this. The basic idea is that a setInterval() call will update the notification area every 30 seconds or so using an AJAX call (opening a web resource in the background).
This AJAX call could load notification.php, a script which will check the database for new complaints and count them, then print their number.

There's no point in going into more depth here. Do simple PHP database tutorials to find out how to generate a dynamic web page / text based on database entries.
Then look at AJAX (which is not a language but a JavaScript technique).
https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started