Coldfusion Ajax - 表单提交
我需要 ColdFusion 方面的帮助,我想使用 CF9 ajax 库,我的标头中有
,并包含一个使用 < cfdiv bind="url:domainchecker.cfm">
然而,这会用“正在加载”ajax 轮替换整个表单,然后显示结果。
我需要的是提交表单,但是单独的结果区域会被更新(并且显然会有ajax“加载”)。我不想改变整个区域(这有意义吗??)
I Need help with ColdFusion, I want to use the CF9 ajax library, I've got <cfajaximport tags="cfform">
in my header, and included a form using <cfdiv bind="url:domainchecker.cfm">
This however replaces the entire form with the "Loading" ajax wheel then shows the results.
What I need, is for the form to submit, but the a separate results area is what gets updated (and will obviously have the ajax "loading"). I don't want the entire area to to change (does that make sense??)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
因此,经过一番深思熟虑,我做到了:
So, after much soul searching, I managed this:
我个人会使用 jQuery 而不是 CF Ajax 函数来实现简单绑定以外的功能,而无需太多额外的 JavaScript。
CF 提供的 JavaScript 函数只是太有限了。
由于您已经使用过 jQuery,这应该很容易。看看Ajax + jQuery 的操作函数。
I personally would use jQuery over CF Ajax functions for something beyond simple binding without too much additional JavaScript.
The provided JavaScript functions from CF are just too limited.
Since you're already used jQuery, this should be quite easy. Look at Ajax + Manipulation functions of jQuery.
保持简单吗?
域搜索.cfm
搜索处理器.cfm
Keep it simple?
domainSearch.cfm
searchProcessor.cfm