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 -~----------~----~----~----~------~----~------~--~---