:: Forum >>

hyperlink for each row

Hi,

I am trying to have each row with a hyperlink, e.g. when you click on row one, you go to 1.htm, when you click on row one, you go to 2.htm, etc.

Is this possible?

Thx
Adam
Friday, July 29, 2005
Yes... like this:

/* Sets entire 2nd row (j==1) as hyperlink */

obj.setAction("click", function(src){
var i = src.getProperty("item/index");
var j = src.getRowProperty("index");
if (j==1) { document.location.href = "1.html"} ;
});
brians
Monday, August 8, 2005
I found this to work better (no need for the whole row to be a link):

------
var data1 = [

["ORCL", "<a href='http://www.oracle.com' target='_top'>Oracle Corporation</a>", "62,615.266", "9,519.000", "40650"],

];
----

Be sure to add the full path ("http://...") along with the "target=_top" in your HREF.


Chicago Sam
Tuesday, August 9, 2005

This topic is archived.


Back to support forum

Forum search