Thanks for the reply, Fred. It isn't for storage, just to assure the
user that it has been received by the triplestore.
I'm afraid I'm too much of a novice to understand what you've
suggested. The response variable contains the return I received from
the triplestore which includes the location as response['location']
and I just want to send this response back to the javascript client.
If I set the response.headers['X-JSON'] as you've suggested, how does
this get to the client using send_data as it seems only body, type and
status can be sent.
Cheers,
Tony.
On Nov 24, 6:42 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> Where were you planning on storing it ? It's either the body or a
> header of some sort.
> For a javascript client you might set
> response.headers['X-JSON'] = {:location => foo}.to_json
> Prototype response handlers get passed this header (after it has been
> parsed into a JS object)
>
> Fred
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---