TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   Help: Php User Messenger system with ajax (http://www.talkphp.com/advanced-php-programming/3397-help-php-user-messenger-system-ajax.html)

tego10122 09-30-2008 01:13 PM

Help: Php User Messenger system with ajax
 
Does anyone have any pointers on how i can create this and implement it into my already made user system? A tutorial if its available would be incredible.

jcorradino 09-30-2008 03:55 PM

well, all you really need to do is make a JS function that calls the DB every couple seconds to check for new messages.

Implementing it should be rather easy, create a .js file that will power the messenger box and call it inside of the web pages.

if you need help figuring out how to work with it, here is something I found that may help you (I know, the link is horrible...) AJAX: Live Comments

EyeDentify 10-01-2008 11:42 AM

i Would suggest that you look into maybe Prototype JS.

They have a nifty function for repeated AJAX calls.
And as i understand this function also helps keep down unesscesary calls.

Prototype JavaScript framework: Ajax.Ajax.PeriodicalUpdater

I havent used it myself yet but planing on in some future project.

Hope itīs helpfull.

Cheers.


All times are GMT. The time now is 02:40 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0