Yes, you can send put a json string in an X-JSON header and it will be 
evaluated and available in your callback functions.  For more 
information, see http://prototypejs.org/api/ajax/request and look for 
the headings "Automatic JavaScript response evaluation" and "Evaluating 
JSON headers."  That should answer all of your questions.

 - Dash -

yreit wrote:
> Hi all,
>
> I would like to know if the Prototype framework is able to detect
> "json" response only by the way of the non-standard header "x-json"?
> Is Prototype able to parse the standard "content-type" response header
> and detect a "not yet standard" mime type like "application/json", or
> something else?
>
> Thanks for this great framework.
> best regards,
> Thierry
>
>
> >
>
>   

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