Please examine the request in the browser console and see what the returned response is. My guess is that the response is invalid, maybe a browser error message in HTML that starts with '<'. Such a response is failing when the client tries to evaluate the response as javaScript
ChartMan On Mon, Aug 16, 2010 at 4:16 PM, Magnus Lüttkens <[email protected]> wrote: > Now I've checked the script using Chrome's Developer tools. > > For this request: var query = new google.visualization.Query("http:// > www.tidningskungen.se/medieregistret/Offers.aspx?name=elle"); > > It throws this error in Console: Uncaught SyntaxError: Unexpected > token < > www.tidningskungen.se:2 > > Any ideas? www.tidningskungen.se:2 is clickable and is workning. > > > On Aug 16, 8:26 am, ChartMan <[email protected]> wrote: > > Normally any valid url will returns a response which can be either a > valid > > response or an error response. Both will return as soon as the server > sends > > the response back to the client. > > Please verify that the server is hit and that it sends the expected > response > > to the client. > > Then you can inspect your DOM or network requests in the browser using > > FireFox (firebug) or Chrome (developer tools) to see that the client is > > sending the request and getting the response. If all works then we can > > further investigate. > > > > The only exception to the above is an error of type "request timed out" > > which is triggered by a timer in the client. If a request fails to return > in > > 30 seconds the response is set in the client to alert that there was an > > error. This implies that the Query you are sending is not returning and > so > > the time out is reached. > > > > HTH > > ChartMan > > > > > > > > On Mon, Aug 16, 2010 at 8:32 AM, Magnus Lüttkens <[email protected]> > wrote: > > > The web service I created is only available locally from my computer. > > > But, as far as I am concerned, a time-out error is not related to the > > > url's content. So this url for instance... > > > > >http://www.tidningskungen.se/medieregistret/Offers.aspx?name=elle > > > > > ...should give a response (it is some xml-data). And it does, if it is > > > typed into a we browser. But when used in the example above it does > > > not work. Why? Does the web service has to send certain hearders? > > > > > On Aug 16, 6:57 am, ChartMan <[email protected]> wrote: > > > > Can you send an example of a failing url. > > > > > > On Sun, Aug 15, 2010 at 10:43 PM, Magnus Lüttkens < > [email protected] > > > >wrote: > > > > > > > I'm new to the Visualization API and just try to get it work. I > manage > > > > > to get the examples work locally, and I have created my own Web > > > > > Service which I think is being produced correctly. > > > > > > > My problem is that whenever I change the url in: > > > > > > > var query = new google.visualization.Query('http:// > > > > > spreadsheets.google.com/tq?key=pCQbetd- > > > > > CptGXxxQIG7VFIQ&range=B1:D11&pub=1'); > > > > > > > ..to something else than an url from a Google-example, I always get > a > > > > > "Time-out Error". Why is this, I mean even though the url content > > > > > would be completely incorrect, I should get a response any way. > I'm I > > > > > right? Why do I get a "Time-out Error"? > > > > > > > -- > > > > > 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]<google-visualization-api%[email protected]><google-visualization- > api%[email protected] <api%[email protected]> > ><google-visualization- > > > api%[email protected]<api%[email protected]>< > api%[email protected]<api%[email protected]> > >> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-visualization-api?hl=en. > > > > > -- > > > 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]<google-visualization-api%[email protected]><google-visualization- > api%[email protected] <api%[email protected]>> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-visualization-api?hl=en. > > -- > 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]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
