This is possible,Please have a look at
http://code.google.com/apis/ajax/documentation/#Dynamic to see how you can
load the api later after the page is loaded.
Please note that as explained there, you need to use a callback parameter
rather than calling setOnLoadCallback function, as the onload event will not
be fired at that time.

While the example in that page is with the maps api, the concept is the
same.

Please let me know if this helps.
VizGuy


On Tue, Nov 25, 2008 at 6:50 PM, jago <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> The Google Javascript library and Viz-lib are always loaded at the
> beginning on the Html code.
>
>    <script type="text/javascript" src="http://www.google.com/jsapi";></
> script>
>    <script type="text/javascript">google.load("visualization", "1",
> {packages:["annotatedtimeline"]});</script>
>
>
> Could I load a Html page without any libraries loaded - and only later
> by pressing a button modify the DOM of the page in such a way that
> only then the necessary Google libraries are loaded and the drawChart
> () function residing in the code is executed?
>
> Could somebody be so kind a write a short example? I am a Javascript
> beginner and although I tried for hours now, all my tests failed.
>
> Cheers,
> jago
>
>
>
> >
>

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