CFDIV, and CFFORM not working right inside a CFWINDOW

2.3k views Asked by At

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">
3

There are 3 answers

3
Sam Farmer On

On the page with the cfdiv you need to add:

<cfajaximport tags="cfform">

That will load up the required Javascript scripts to make cfform work within a window.

0
Mark G On

Might need to pull in cfdiv from that cfAjaxProxy call as well.

0
AARON MCLEAN On

fully qualify your path and it will work. I just ran into this issue. I have a cfdiv inside a cfwindow

<cfdiv
id="idGoesHere"
name="nameGoesHEre"
style="height:300px;width:300px;display:none"
bind="url:http://serverName.att.com/folder/NotesTab_Ajax.cfm?Note_Tag_Type_Code={Tag_Note_Type@change}&case=buildAvailableTagList"
bindOnLoad="false"
/>

for some reason stepping the URL back a directory worked too ../folder/NotesTab_Ajax etc