gpt4 book ai didi

ajax - Railo Custom 505处理程序和Ajax路径

转载 作者:行者123 更新时间:2023-12-03 08:53:17 26 4
gpt4 key购买 nike

我有一个外部javascript文件,该文件调用setinterval函数,该函数检查cfc以确保服务器与远程计算机之间的文件传输完成。当我使用标准错误处理程序调用此函数时,它将起作用。在我添加自定义错误处理程序后不久,它就失败了。我很笨。

    File_transfer.js   
{
Function check_stream_server ()
Ajax call to query, application scoped, query-object.
Path = "ss_check.cfc"
};
// exception log and response with custom error
// I work with no custom error handler

Function send_file ()
{
Ajax to Put file in object; // I work
Same ajax call to Start stream.
thread if not running; //I work
Setinterval (check_stream_server, 5000) //I set interval
}

}
}
Index.cfm null {
Include the file_transfer.js
<button>click </button>

<script>
Button.on ('click', function (){
Send_file()
})
</script>
}

Index.cfm,check_ss.cfc和object_insert.cfc都在同一文件夹中。 Js在外部lib文件夹中。

抱歉,此代码很烂,但是我正在电话中输入此代码,因此今晚无法休眠或整夜都无法做梦。

如果有帮助,我还可以运行已编译的存档。

最佳答案

将cf admin设置为更新错误是一个错误。有一个远程客户端= arrayofclients并未从复制和粘贴示例到文档中的某人删除。我通过在初始cfm页面中将函数初始化为适当的范围来解决该问题,但是后来发现设置自定义错误处理程序时这是一个错误。

关于ajax - Railo Custom 505处理程序和Ajax路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35567245/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com