tags:

views:

22

answers:

1

Hi I have a message box in my project if one have to check some message they have to enter the message link to check message instead ,I am thinking of showing a message in a popup box if the query where i am fetching the messages is not empty ,,(i,e) if there is any unread message in users account must,trigger a popupbox with message ,,,,There is a new message in your message box,,, Does this process needs backround threading , should we work with some othertechnology to be integrated with php to complete the process?

+1  A: 

of the top of my head, albeit there is surely some norm/best practice for this, use a js loop that runs every 30 secs that fires an ajax request that queries the database. If there are some results, update the appropriate fields.

Iraklis
@iraklis: does it require any other technology to do so
udaya
@iraklis :i mean should we integrate any other technology with php
udaya
Start by reading about jQuery, a javascript library for the browser. It enjoys a large community base and is beeing used by many "Blue Chips". Specifically http://api.jquery.com/jQuery.post/
Iraklis