Setting access to remote in a cffunction includes the application.cfm page

385 views Asked by At

When I set a cffunction's access to remote--so I can call it through AJAX--the call returns the HTML I have in my Application.cfm template.

Is there any way around this, or do I have to move the HTML out of Application.cfm?

1

There are 1 answers

3
Todd Sharp On BEST ANSWER

This would be considered expected behavior. I'd suggest not outputting content within your Application.cfm. Consider using custom tags for wrapping your pages or better yet switch to using Application.cfc and use custom tags.