Take a look at:  
http://code.google.com/apis/visualization/documentation/events.html#example

Here's an example of this pattern using prototype js APIs:

var data = new google.visualization.DataTable();
// fill up data

var table = new google.visualization.Table($(containerElement));
google.visualization.events.addListener(table, 'select', function() {
    var rowIds = new Array();
    $A(table.getSelection()).each(function(selection) {
         rowIds.push(selection.row);
    });

    new Ajax.Request(url, {
        method: "post",
        parameters: { SELECTED_ITEMS: rowIds},
        onSuccess: function(response) {
             // evaluate response and show the user some
information...
        }
    });
});

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