Was my post deleted? Dupe?

On 5/21/07, smellis <[EMAIL PROTECTED]> wrote:
>
>
> Hello Everyone,
>
>   I upgraded to 1.5.1 today and I have run into a problem: automatic
> JSON evaluation has stopped working.  On the server side I use
> Catalyst, an MVC framework for perl.  I use Catalyst::View::JSON to
> turn my perl data structures in to JSON.  Here is what my response
> headers look like:
>
> Response Headers
> Connection      close
> Date    Mon, 21 May 2007 15:12:54 GMT
> Content-Length  984
> Content-Type    application/javascript; charset=utf-8
> Set-Cookie      bg2_session=5279b9253f970f84dd032ec4a00ba2a34dcff66c;
> path=/; expires=Mon, 21-May-2007 17:12:54 GMT
> Status  200
> X-Catalyst      5.7007
> X-JSON  eval("("+this.transport.responseText+")")
>
> The JSON is actually in the response body.  I had to subclassed my
> JSON view to spit out application/javascript, because the default
> content-type (application/json) is not listed in the prototype
> documentation as one that will cause prototype to auto evaluate the
> reponse.  I have tried turning off the X-JSON header to see if that
> was a problem, but it still doesn't work.  Any ideas?  Thanks in
> advance. -stephan
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to