So even adding this within the div wouldn't work?

<a href='#' onClick='javascript:drawVisualization()'><img
src='draw.gif' alt='draw' /></a>

Which is a dumb question because I tried it and it doesn't.

Just trying to find the simplest way to do this without having to re-
write all of my queries that generate the correct data sets

On Oct 3, 2:42 pm, asgallant <[email protected]> wrote:
> No, because setOnLoadCallback is called when the API is finished loading.
>  Even if you replaced it with a straight drawVisualization() call, it
> wouldn't run the script.  You have to explicitly call any dynamically
> generated JS.
>
> You might want to consider having your PHP script return a JSON string
> representation of your data instead, and having the JS code in the main doc.

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