CFDIV 和 CFFORM 无法在 CFWINDOW 内正常工作
大家好,当我尝试在 cfwindow 内显示 cfdiv 时遇到问题。它只是没有出现。没有错误,没有任何信息告诉我我做错了什么。如果我将 div 显示在 cfwindow 之外的页面中,它就可以正常工作。 cfdiv 绑定到显示注释的页面。如果我尝试对 cfdiv 绑定到的页面执行 cfinclude,则会收到错误消息,指出找不到模板,或者需要映射。我在 cfform 内也有一个 cftext 区域,我正在尝试用它进行富文本处理,但是它在 cfwindow 内也不起作用。 cfwindow 无法执行此操作,还是有我不知道的技巧。如果您需要任何其他信息,我将很乐意提供。
<cfdiv bind="url:/admin/notes/noteDiv.cfm?noteCategory=businessListing#url.listingID#" id="noteDiv">
Hey guys I am having an issue when I'm trying to display a cfdiv inside a cfwindow. It just doesn't show up. No errors, nothing to tell me I'm doing something wrong. The div works just fine if I display it in the page outside of the cfwindow. The cfdiv binds to a page that displays notes. If I try to do a cfinclude with the page the cfdiv binds to I get an error saying that the template can't be found, or there needs to be a mapping. I also have a cftext area inside a cfform and I'm trying to do richtext with it, however it doesn't work either inside of the cfwindow. Is cfwindow incapable of doing this, or is there a trick I don't know about. If you need any other information I'll be happy to provide it.
<cfdiv bind="url:/admin/notes/noteDiv.cfm?noteCategory=businessListing#url.listingID#" id="noteDiv">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在带有 cfdiv 的页面上,您需要添加:
这将加载所需的 Javascript 脚本以使 cfform 在窗口中工作。
On the page with the cfdiv you need to add:
That will load up the required Javascript scripts to make cfform work within a window.
完全限定你的道路并且它会起作用。我刚刚遇到这个问题。我在 cfwindow 内有一个 cfdiv,
由于某种原因,将 URL 后退到一个目录也有效../folder/NotesTab_Ajax 等
fully qualify your path and it will work. I just ran into this issue. I have a cfdiv inside a cfwindow
for some reason stepping the URL back a directory worked too ../folder/NotesTab_Ajax etc
可能还需要从 cfAjaxProxy 调用中提取 cfdiv。
Might need to pull in cfdiv from that cfAjaxProxy call as well.