Hi,
I currently use the Query() method to request data from my server. My
server responds with text that looks something like:
google.visualization.Query.setResponse({"status":"ok","reqId":"0","table":
{"cols ...
All is good so far. :)
I want to make requests to this same server, but I want to do them
using jQuery. You have a nice example of how to do this here:
http://code.google.com/apis/chart/interactive/docs/php_example.html
It looks like the server produces the same data as in the "table"
field of the Query() response.
My question is, how can I process the output of server's
"google.visualization.Query.setResponse..." message so that I can use
it with the jQuery approach that only needs the table field? I don't
want to change the server's output. I'm hoping there's a way I can
process the response and extract the data using regular js and jQuery.
Can I just evaluate the string and extract the table somehow?
(if you're curious, I'm doing this as a workaround to not having a
POST method available in the Query() object; POST is available in
jQuery )
I feel like it's possible, but I'm just missing some info on how to do
it properly.
Thanks for any suggestions,
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" 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/google-visualization-api?hl=en.