I have a servlet creating the dataTable, when using the toolbar I can
successfully export my data to csv/ html with the url pointing to my
servlet. When I try to use iGoogle as publish option, the request
doesn't go to my servlet. Instead I see my arguments as url and get
gadget not found.
Is this not possible this way?
Peter
*servletPath is url to my servlet which returns a DataTable.
function drawToolbar(args) {
var servletPath = Application.getContextName() + "/exportchart/
export.csv?arguments=" + args;
var components = [
{type: 'igoogle', datasource: servletPath,
gadget: 'https://www.google.com/ig/modules/line-chart.xml'},
{type: 'html', datasource: servletPath},
{type: 'csv', datasource: servletPath},
{type: 'htmlcode', datasource: servletPath,
gadget: 'https://www.google.com/ig/modules/line-chart.xml',
userprefs: {'3d': 1},
style: 'width: 800px; height: 700px; border: 2px solid
purple;'}];
var container = document.getElementById('control1');
google.visualization.drawToolbar(container, components);
};
--
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.