Hi
I have this code
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("maps", "3", {other_params:"sensor=false"});
google.load("jquery", "1.3.2");
google.load("visualization", "1", {packages: ["columnchart"]});
function initialize() {
// some actions...
function mapload(myfile) {
jQuery.get("trace_" + myfile + ".xml", {}, function(data) {
// some actions...
});
}
mapload('ah');
}
google.setOnLoadCallback(initialize);
</script>
<input type="button" value="Hunt Mesa" onclick="mapload('hunt')" />
The first "mapload" works fine
But the onclik button say "mapload is not defined".
Do you know why ?
Thanks for your help...
Chris