Hi,
The question is what does your php return?
A Query will only succeed if the server returns a string in the correct
form.
Look at
http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html
For details.
Regards,
VizBoy.
On Fri, Mar 27, 2009 at 2:21 PM, [email protected] <[email protected]>wrote:
>
> Hey,
>
> I am trying to get this query callback function to work, but I get a
> timeout exception all the time?
>
> It works perfectly when trying to execute this adress: "http://
> spreadsheets.google.com/pub?key=pCQbetd-CptH5QNY89vLtAg"
>
> but when I try to call my own php file, on my server I get a timeout.
>
> When calling my file via the browser it comes up just perfect.
>
> Anyone who have any idea? Are we talking some kind of server setup?
>
> My code:
> String str = "http://spreadsheets.google.com/pub?key=pCQbetd-
> CptH5QNY89vLtAg<http://spreadsheets.google.com/pub?key=pCQbetd-%0ACptH5QNY89vLtAg>
> ";
> Query query = Query.create(str);
>
> query.send(new Callback(){
> public void onResponse(QueryResponse response) {
> if (response.isError()) {
> Window.alert("An error occured: " + response.getMessage());
> }
> else
> {
> Window.alert("gi gas");
> }
> }
> });
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---