Application.cfm interferes with CFC-call...
Application.cfm interferes with CFC-call...
I have some files called Application.cfm, PageHeader.cfm, OnRequestEnd.cfm, PageFooter.cfm, SearchFunctions.cfc, and of course the actual page called Search.cfm
The Application.cfm file is using CFINCLUDE to include the PageHeader.cfm file and the OnRequestEnd.cfm includes the PageFooter.cfm file in a similar way.
Search.cfm have some CFSELECT tags bound to a CFC, and the code is sound and should work, but the dropdowns come up empty.
However, if I move the CFINCLUDE tags from Application.cfm and OnRequestEnd.cfm and include them in the Search.cfm file instead, then the dropdown menus in the CFSELECT tag are filled with the data from the CFC (as it should).
It is a mystery.
For some unknown reason, the CFSELECT will not call the CFC even though the parameter bindonload="true" if the PageHeader.cfm file is included in the application-file, but it will call the CFC when it is included from the page.
Now you are wondering what it in the PageHeader.cfm file and PageFooter.cfm, I'm sure? But it's nothing important, just some html-code, some css, and some linked js, and it all works if it is not included in the application-file. Mysterious.
