简体   繁体   English

在php / javascript中单击另一个页面中的按钮时需要启用按钮

[英]Need to enable a button when click a button in another page in php/javascript

my Question is the 1st user logged in one page and has one button.2nd user logged in his page .he has one disable button.when 1st user click the button the 2nd user disable button will be enabled in php/javascript.is this possible? 我的问题是第一用户登录一个页面并具有一个按钮。第二用户登录其页面。他具有一个禁用按钮。当第一用户单击该按钮时,第二用户禁用按钮将在php / javascript中启用。 ? Thanks in advance. 提前致谢。

When user 1 click button 1 update database and on the other page check periodically with ajax if the table updated change the button attribute to enable. 当用户1单击按钮1更新数据库时,在另一页上,使用ajax定期检查更新表是否将button属性更改为启用。 If you don't want to check periodically you can use node.js or similar approaches. 如果您不想定期检查,可以使用node.js或类似方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM