Ticket #339 (closed defect: fixed)
CFHTMLHEAD in view templates breaks RemotingService.cfc
| Reported by: | chrisblackwell | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Version: | 3.0.178 | Severity: | normal |
| Keywords: | remoting cfhtmlhead | Cc: |
Description
From post to mailing list - http://groups.google.com/group/model-glue/browse_thread/thread/3c755a7cdc125336
Patched AbstractRemotingService?.cfc attached
I have an event that gets a list of items, and the view template uses a custom tag to display them. The custom tag uses <cfhtmlhead> to throw its js & css into the page. However when i execute this event via the remoting service the js/css is still sent to the output stream, so my json packet is fubar'd.
Steps to reproduce:
1) edit a view template and add the following tag anywhere in the template
<cfhtmlhead text="oooh dear!!" />
2) execute an event that includes the above view using RemotingService?
http://your_server/RemotingService.cfc?method=executeEvent&eventname=some.event
3) you should see output similar to the following
oooh dear!!<wddxPacket version='1.0'><header/><data><struct></struct></data></wddxPacket>
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)