After setting allowhtml:true, still i am not able to call javaScrippt
function from <a href> tag. Here's a code snippet:
I want to call a java script function getJsonforCountries as soon as i
click on any link in data table.
*var* formatter = *new* google.visualization.PatternFormat('<a href="#"
onclick="getJsonforCountries({0});">{0}</a>');
formatter.format(data, [0,0]);
Help appreciated :)
On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
> The Table visualization escapes all HTML content unless you set the
> "allowHtml" option to true.
>
> On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick
> wrote:
>>
>> I have JSON data that will contain a hyperlink, complete as html markup.
>> I need to display this link as-is, and I think the Table is scrubbing the
>> cell content before display. Is there a way to suppress this action, or do
>> I need to break down the tag on the server side, then use a
>> PatternFormatter to rebuild it before passing it to Table for display?
>>
>>
On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
>
> The Table visualization escapes all HTML content unless you set the
> "allowHtml" option to true.
>
> On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick
> wrote:
>>
>> I have JSON data that will contain a hyperlink, complete as html markup.
>> I need to display this link as-is, and I think the Table is scrubbing the
>> cell content before display. Is there a way to suppress this action, or do
>> I need to break down the tag on the server side, then use a
>> PatternFormatter to rebuild it before passing it to Table for display?
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/SaI_eNwvugEJ.
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.