How do i build a notification system like in Facebook and stuff using Dreamweaver?
|
04-08-2014, 09:20 PM
Post: #1
|
|||
|
|||
How do i build a notification system like in Facebook and stuff using Dreamweaver?
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?
Ads |
|||
04-08-2014, 09:26 PM
Post: #2
|
|||
|
|||
it sound a litle hardly
You should reading about websocket No!! Use a websocket Ads |
|||
04-08-2014, 09:28 PM
Post: #3
|
|||
|
|||
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...ng_Started |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)