Thanks for these comments, I'll pass them on.

- VizBoy.

On Mon, May 11, 2009 at 2:39 PM, Eric Tiffany <[email protected]>wrote:

> Thanks -- after posting I came to that conclusion myself.  It might be
> worth revising the documentation to make it clearer that that having
> "responseHandler" in the request is an exceptional case; as they are now,
> the docs imply this is the normal case (at least to me).  When things
> weren't working I spent a fair amount of time trying to figure out why the
> request looked "broken", when I should have been looking elsewhere for the
> source of the problem.
>
> But thanks for the info and the generally excellent docs.  Well, the
> documentation is excellent, though the navigation and organization could be
> improved.
>
> ET
>
>
> On Mon, May 11, 2009 at 7:27 AM, VizBoy <[email protected]> wrote:
>
>> Hi!
>>
>> Sorry for the delay.
>> Yes, you are indeed probably misinterpreting the docs.
>> The request handler's name is always
>> google.visualization.Query.setResponse()
>> The callback supplied to Query.send() is the page developer's own
>> function.
>> setResponse() is a function that is supplied with the javascript library.
>> Anyway, when you develop a data source you should always start your
>> response with google.visualization.Query.setResponse(
>>
>> All of this is true, except for one case, and that is when the tqx
>> parameter explicitly supplies a "responseHandler" parameter, in which case
>> you need to replace "google.visualization.Query.setResponse" with that
>> parameter. But that case is rarse. You *should* support it, because it's in
>> the spec, but don't expect this to happen often.
>>
>> Quoting from the docs (
>> http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#requestformat
>> ):
>> responseHandler - [*Optional in request; Data source must handle*] The
>> string name of the JavaScript handling function on the client page that will
>> be called with the response. If not included in the request, the value is
>> "google.visualization.Query.setResponse". This will be sent back as part of
>> the response; see Response 
>> Format<http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#responseformat>below
>>  to learn how.
>>
>> Hope this helps.
>>
>> - VizBoy.
>>
>>
>> On Wed, May 6, 2009 at 3:43 PM, et01267 <[email protected]> wrote:
>>
>>>
>>> I'm trying to develop a data source inside App Engine, but I'm not
>>> even able to get the request I expect from the client.
>>>
>>> It seems as though the Query.send(callback) isn't including the
>>> callback parameter in the request to the server.
>>>
>>> If I use the APIs Playground example at
>>>
>>>
>>> http://code.google.com/apis/ajax/playground/?type=visualization#data_source_request
>>>
>>> and just change the domain of the data source in line 3 from
>>> 'spreadsheets.google.com' to a server I control, I see this in the
>>> logs for the request sent by the query.send(handleQueryResponse) on
>>> line 7:
>>>
>>> GET /tq?key=pCQbetd-CptGXxxQIG7VFIQ&range=B1:D11&pub=1&tqx=reqId%3A0
>>> HTTP/1.1
>>>
>>> I was sort of expecting to see a requestHandler parameter somewher in
>>> that request.
>>>
>>> Maybe I'm misunderstanding the docs here:
>>>
>>> http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#requestformat
>>>
>>> Note that I see the same thing with the pre-release Vis 1.1
>>>
>>>
>>>
>>
>>
>>
>
>
> --
>     ___/  __  __/
>   __/           /
> ____/      _/
>
> >
>

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

Reply via email to