Hi Kiran,

Can you post a small sample of your code. I want to see your structured
code and figure out what's the correct approach.
Maybe you can write a function that holds everything and then eval() the
output string.... I don't know.... I need to see for my self.

This all I can do for now. Sorry,



On Wed, Dec 7, 2011 at 8:50 AM, MyInfoland <[email protected]> wrote:

> Dear Roni Biran,
>
> Thank you for your reply.
>
> I have checked the example you have sent. In that he is just fetching
> the data in Ajax Request. In my case, the whole script that is
> rendering the chart will be fetched as a Ajax response. That response
> will be added in to a DIV within my webpage.
>
> Ex.
>
> var div = document.getElementById("someid");
> div.innerHTML = response.responseText;
>
> In the above the case, response will have the complete google chart.
> If I have added the response to some html file and loaded, it is
> perfectly working. But when I have added the same response as
> innerHTML, it is not working. Hope you understand.
>
> Thanks,
> Kiran
>
>
> On Dec 6, 5:36 pm, Roni Biran <[email protected]> wrote:
> > I think that your BL logic might be wrong.
> > You might want to look at this sample:
> http://code.google.com/apis/chart/interactive/docs/php_example.html
> > It uses a jQuery ajax request and draws a pie chart at its end.
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Dec 6, 2011 at 5:29 AM, MyInfoland <[email protected]>
> wrote:
> > > Dear Team,
> >
> > > I am fetching the Google Visualization API as Ajax response and am
> > > adding it to the page as an innerHTML to a DIV. After doing this, the
> > > chart is not loaded. From my understanding, this is because drawChart
> > > will be called only when we call the Google Visualization API load
> > > because I am using "google.setOnLoadCallback(drawChart);"
> >
> > > I could and understand, how can I make it work. Any help would be
> > > great.
> >
> > > Thanks,
> > > Kiran
> >
> > > --
> > > 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.
>
> --
> 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.
>
>

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