R
rakata.warrior
Hello. I have a problem with google visualization (http://
code.google.com/intl/ru-RU/apis/visualization/documentation/
using_overview.html). Examples give by google are working fine, but if
I move google.load from scripts body to any function, loaders stops
work. I mean, this code
function load(){
google.load('visualization', '1', {'packages':
['piechart']});
google.setOnLoadCallback(drawChart);
}
doesn't work while this one
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></
script>
<script type="text/javascript">
google.load('visualization', '1', {'packages':['piechart']});
google.setOnLoadCallback(drawChart);
does pretty good. But I have a website with many frames and I need to
make various graphs on every frame so the idea was to make a function
in a javascript library file which would draw needed graphs. But I
can't do it because I have no idea what's going on with google.load -
why doesn't it work when calling inside of a function?
Any help would be greatly appreciated.
code.google.com/intl/ru-RU/apis/visualization/documentation/
using_overview.html). Examples give by google are working fine, but if
I move google.load from scripts body to any function, loaders stops
work. I mean, this code
function load(){
google.load('visualization', '1', {'packages':
['piechart']});
google.setOnLoadCallback(drawChart);
}
doesn't work while this one
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></
script>
<script type="text/javascript">
google.load('visualization', '1', {'packages':['piechart']});
google.setOnLoadCallback(drawChart);
does pretty good. But I have a website with many frames and I need to
make various graphs on every frame so the idea was to make a function
in a javascript library file which would draw needed graphs. But I
can't do it because I have no idea what's going on with google.load -
why doesn't it work when calling inside of a function?
Any help would be greatly appreciated.