Real-time jquery popup based on php return values
===

Im having a php program that will calculate the time difference and return the value in minutes.

for the message popup i use [jGrowl][1]

so what i would like to do is get the return value and if its less than 30 minutes display the jquery message.

and most importantly it should be running live. so if a user is in a page  without navigating or refreshing, if the time is less than 30 minutes the popup should appear real-time.

can someone please suggest me how to use the return value to achieve the above requirement?  





  [1]: http://stanlemon.net/pages/jgrowl