开发者

Automatic Refresh of DIV using jQUery on MySQL change

开发者 https://www.devze.com 2023-02-19 11:35 出处:网络
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 comment

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

精彩评论

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