Hi,

I'm sorry but I can't seem to reproduce...
I tried the following html code and it seems to work fine.
Moreover, firebug shows that 10 requests indeed were sent, each with a
different reqId.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>
      Google Visualization API Sample
    </title>
    <script type="text/javascript" src="http://www.google.com/jsapi
"></script>
    <script type="text/javascript">
      google.load('visualization', '1', {packages: ['table']});
    </script>
    <script type="text/javascript">
    var visualization;

    function drawVisualization() {
     for (var i = 0; i < 10; i++) {
      var query = new google.visualization.Query(
          '
http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&range=B1:D11&pub=1'<http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&range=B1:D11&pub=1%27>
);

      // Send the query with a callback function.
      query.send(handleQueryResponse);
     }
    }

    var divIndex = 1;

    function handleQueryResponse(response) {
      if (response.isError()) {
        alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
        return;
      }

      var data = response.getDataTable();
      visualization = new
google.visualization.Table(document.getElementById('visualization' +
divIndex));
      visualization.draw(data, null);
       divIndex++;
    }

    google.setOnLoadCallback(drawVisualization);
    </script>
  </head>
  <body style="font-family: Arial;border: 0 none;">
    <div id="visualization1" style="height: 400px; width: 400px;"></div>
    <div id="visualization2" style="height: 400px; width: 400px;"></div>
    <div id="visualization3" style="height: 400px; width: 400px;"></div>
    <div id="visualization4" style="height: 400px; width: 400px;"></div>
    <div id="visualization5" style="height: 400px; width: 400px;"></div>
    <div id="visualization6" style="height: 400px; width: 400px;"></div>
    <div id="visualization7" style="height: 400px; width: 400px;"></div>
    <div id="visualization8" style="height: 400px; width: 400px;"></div>
    <div id="visualization9" style="height: 400px; width: 400px;"></div>
    <div id="visualization10" style="height: 400px; width: 400px;"></div>
  </body>
</html>



On Wed, Feb 4, 2009 at 11:57 PM, chrissky <[email protected]> wrote:

>
> Hi,
> I have a page with 8 charts. I was getting query timeouts on the last
> three. Figured it was something on the Google Docs end. So I grabbed
> the JSON strings and stored as local files and loaded
> google.visualization.Query using those. But still, only the first five
> loaded and the last three timeout. The saved .js files look fine. All
> I can figure is there is a threshold for reqId of 5.
>
> Is that true? Is there some other possibility?
>
>  - chris
>
> >
>

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