开发者

Best way to SCREEN POP user after POST request to URL

Im looking for the best approach to takle the following, I have sorted a solution that will POST info (?from=078103xxxxx&to=020300xxxxx ETC.) using CURL to a URL, upon the user receiving a phone call on their phone <- this part is all sorted, however I need the best way to Screen POP this info and other cross-referenced info (using SQL) info on the users screen, either via the web or intranet.

Basicly, is it possible, if a user is logged onto a URL, say thingy.com/index.php?user=12345 that as soon as the request has been posted to that URL (i.e somebody开发者_JAVA技巧 has rung their phone) that a pop-up is displayed with info on it. If what is the best way???

Any ideas?

Cheers, B.


Use Jquery, and a 'lighbox' for the popup. Combined with a server push (aka reverse ajax). Google it. This can be better than having the script repeatedly requesting for information in a loop forever, though it has it's drawbacks.

Some info:
http://biese.wordpress.com/2009/03/03/using-server-push-aka-reverse-ajax/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜