Try merging the two load calls like this:
google.load('visualization', '1', {packages:['columnchart', 'piechart']});
also remove the xml2json script to see if it is causing the problem.
The google namespace is defined in www.google.com/jsapi script.
If this loads to your page 'google' will be defined.
On Mon, May 3, 2010 at 8:14 AM, sree <[email protected]> wrote:
> My code is given beloew...
>
> its an included JSP page. I have tried same in different pages in
> my applicationn and getting same result.
>
> <script language="text/javascript" type="text/javascript" src="/
> page/js/xml2json.js"></script>
> <script type="text/javascript" src="http://www.google.com/jsapi"></
> script>
> <script language="JavaScript" type="text/javascript">
> google.load('visualization', '1', {packages:['columnchart']});
> google.load('visualization', '1', {packages:['piechart']});
>
> //call back starts from here
> function callback()
>
> On May 2, 11:54 am, ChartMan <[email protected]> wrote:
> > Looking at this again: maybe IE does not handle well the line breaks in
> your
> > code.
> >
> >
> >
> > On Fri, Apr 30, 2010 at 2:37 PM, sree <[email protected]> wrote:
> > > Hi,
> >
> > > Following code working fine with FF and no in IE 8 and 7
> >
> > > <script type="text/javascript" src="http://www.google.com/jsapi"></
> > > script>
> > > </head>
> > > <script language="JavaScript" type="text/javascript">
> >
> > > google.load('visualization', '1', {packages:['columnchart']}); //
> > > failing here
> > > google.load('visualization', '1', {packages:['piechart']}); //
> > > failing here
> >
> > > Thanks
> > > Sreenadh
> >
> > > --
> > > 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]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-visualization-api?hl=en.
> >
> > --
> > 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]<google-visualization-api%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-visualization-api?hl=en.
>
> --
> 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]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>
--
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.