very cool! thank you.
bill
On Wed, Mar 9, 2011 at 2:03 PM, asgallant <[email protected]>wrote:
> Try something like:
>
> function drawTable (){
> .
> .
> .
> google.visualization.events.addListener(table, 'select',
> selectHandler);
> }
>
> function selectHandler (){
> var selection = table.getSelection();
> var url = "get_details.php?name=" +
> table.getFormattedValue(selection[0].row, 0);
> window.open(url);
> }
>
> where "table" is the visualization object.
>
> I haven't worked with tables before, so this might require some
> tweaking to make work exactly the way you want, but the basic
> functionality is there.
>
> On Mar 9, 12:31 pm, c2billp <[email protected]> wrote:
> > hello - i have a google table viz which displays a collection of data.
> > When a specific cell is clicked i would like to trigger a "popup"
> > window that is populated with the contents of another page eg:
> >
> > name|age|details
> > bill|47|clickme
> >
> > when clickme is clicked i would like to create a popup that contains
> > "get_details.php?name=bill"
> >
> > I can find no sample code that shows how to load external content like
> > this (only the demo that loads a generic alert message).
> >
> > Examples/sample code links?
> >
> > Thank you.
> > -bill
>
> --
> 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.