3.2.0

Double click on a row (row specific)

Hello everyone.

Im using this

obj.onCellDoubleClicked = function(event, col, row){window.open(href="links.html" )};

to pop open a new page on a row double click. It works great, but theres two things I wish to add to it, as its borrowed code and I cant figure out the rest.

Id like to have each row have its own specific action and open a page I have made for each particular row (this is a registry so each row is data for a "profile").

Im using a CSV for all the data if that helps. I could plop a url in the csv somewhere and reference that if needed.

So, if you double click row 1, it will pop open car445f44.html, and row 2 will pop open car5454546.html, and so on. The html pages all have unique names.

I hope I havent confused anyone!
Driggs
January 10,
Why is it that you always seem to stumble across the answer AFTER youve asked for help?

Granted this may not be the cleanest approach, but it works!

obj.onCellDoubleClicked = function(event, col, row){
if(row==0)return window.open(href="row1profile.html" )
if(row==1)return window.open(href="row2profile.html" )};
Driggs
January 10,

This topic is archived.

See also:


Back to support forum