douyou2368 2018-09-27 15:48
浏览 89

Jquery Ajax请求需要鼠标移动才能更新屏幕?

I have a fairly straight forward system which consists of one large screen showing the status of order numbers and a user screen (iPad) where they are changed.

Both are simple html/php pages and were working fine an hour ago.

The main screen is set to refresh every 3 seconds with the following code (this is the only actual script in this page).

$(document).ready(function() { 
    setInterval(timingLoad, 3000);
    function timingLoad() {
        $('#main').load('update_divs.php #main', function() {
        });
    }
}); 

This is all setup on a small standalone Linux pc running as a LAMP server with no internet access.

The refresh runs 3 very basic php SQL requests to populate the Div with current position.

According to the user it has been working fine all afternoon but now will not update unless the mouse is moved, as soon as the mouse has had any movement the screen immediately updates to the latest position. This is not at all ideal as there shouldn't even be a need for a mouse to be connected to the PC.

Is it possible that I'm refreshing the page too often and somehow causing a memory issue or is this some other issue that people are aware of?

I've told them to restart the PC when they get a chance and I feel (as I've not heard from them in last half hour) that this has resolved it but obviously it is possibly going to happen again if I can't resolve it.

Any thoughts?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
    • ¥15 r语言神经网络自变量重要性分析
    • ¥15 基于双目测规则物体尺寸
    • ¥15 wegame打不开英雄联盟
    • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
    • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
    • ¥30 eclipse开启服务后,网页无法打开
    • ¥30 雷达辐射源信号参考模型
    • ¥15 html+css+js如何实现这样子的效果?
    • ¥15 STM32单片机自主设计