I had a similar issue outputting image. It worked with simple php
script but failed within cake

I'd recommend you inspect output  of both scripts using
http://web-sniffer.net/


In my case I could see that the response header was set up properly but
I there was a blank space inserted in the beginning of response body.
It turned out that one of the helpers I was using caused this to
happen.

Hope this helps.

On Oct 17, 2:28 pm, "Rodrigo Tassinari" <[EMAIL PROTECTED]> wrote:
> I tested both suggestions: using the ajax layout ($this->layout =
> 'ajax' ) and changing the the header to header("Content-type:
> text/javascript");. Both did not work. :(
>
> I know this is happening because of something to do with CakePHP,
> because it works if I just use a regular php file to output the
> javascript, and the code that outputs the javascript is identical in
> both the regular file and in my action/view with cakephp...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to