我如何才能让我的网站在两个用户之间更具互动性?
问题描述:
答
You can run a script that uses ajax to hit a defined url every second and gets the data you need, ou use something quite new and advanced called WebRTC. Of course, you can always use a framework that does it for you, but it's always good to know what's going on under the hood.
-------- EDIT --------
You need to use ajax in both pages. In one page, for the user to send the request and store it to the DB, and in the admin page for it to hit every second some URL that returns the number of open requests, so you can load the admin page once and keep hitting this url to know if the number of open requests have changed since you loaded the page. If so, you update the info or do whatever ou need, without refreshing the page.