开发者

Automatic Refresh of DIV using jQUery on MySQL change

Is there a tutorial out there which shows you how to refresh a DIV upon a MySQL change? Like to show only the MySQL records above a certain timestam开发者_开发问答p and/or ID?


I agree with the comments. But, you can try to experiment an event-driven server side technology. For example, node.js (based on websockets).

Your client stays listening till an event occurs (database insert), and then, you can reload your div.

This is theory, but I'm sure you can do it this way.

But, as Marco said it, the best way is to set intervals to your refresh (poll method).

Regards.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜