According to the error message you posted, there is HTML inside 
the jsonData variable (you can see it in the output from console.log).  You 
need to figure out where that is coming from and get rid of it.  Since the 
chart.php code doesn't contain that HTML anywhere, I assume it is being 
injected via your webserver.

On Thursday, December 26, 2013 1:18:06 PM UTC-5, San Diran wrote:
>
> Not quite sure what you mean there..
>
>
> On Fri, Dec 27, 2013 at 2:07 AM, asgallant 
> <[email protected]<javascript:>
> > wrote:
>
>> It looks like your webserver is injecting HTML into the data returned by 
>> chart.php.  You have to disable the injection for the chart.php page.
>>
>>
>> On Thursday, December 26, 2013 12:32:44 PM UTC-5, San Diran wrote:
>>>
>>> Firstly, thanks for replying
>>>
>>> - yup, my content do have that div (<div id="visualization" 
>>> style="width: 1000px; height: 400px;"></div>)
>>> - receiving this "Uncaught SyntaxError: Unexpected token <" error msg
>>>
>>>
>>>
>>>
>>> On Friday, December 27, 2013 12:12:53 AM UTC+8, asgallant wrote:
>>>>
>>>> I skimmed over your code and it looks like it should work (assuming 
>>>> your statistic.php file's "content" section contains a div with the id 
>>>> "visualization").  What happens when you try to run it?  If you don't see 
>>>> a 
>>>> chart, open it in Chrome and view the developer's console (ctrl+shift+j 
>>>> opens it in Windows) - are there any error messages in the console?
>>>>
>>>> On Wednesday, December 25, 2013 11:46:23 PM UTC-5, San Diran wrote:
>>>>>
>>>>> Can anyone help me with this?  i want to plot number of people 
>>>>> (death/alive/alive but disable) with sector.
>>>>> New to everything, but will try my best to learn from anyone
>>>>>
>>>>>
>>>>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-visualization-api/ANKJQlM24GA/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to