HELP! I seem to be overwriting my links
I am trying to assign hyperlinks to each column based on the values in column 5 of my CSV file.
the problem is that only the last column hyperlinks seem to work. i cant figure out what i am doing wrong. can someone give me a hand?
this is my code:
// set col 1 hyperlinks
obj.setCellLink("javascript:void(1);", 0,0);
obj.setCellTemplate(new AW.Templates.Link, 0);
obj.onCellClicked = function(event, col, row){if (col==0 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 2 hyperlinks
obj.setCellLink("javascript:void(1);", 1);
obj.setCellTemplate(new AW.Templates.Link, 1);
obj.onCellClicked = function(event, col, row){if (col==1 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 3 hyperlinks
obj.setCellLink("javascript:void(1);", 2);
obj.setCellTemplate(new AW.Templates.Link, 2);
obj.onCellClicked = function(event, col, row){if (col==2 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 4 hyperlinks
obj.setCellLink("javascript:void(1);", 3);
obj.setCellTemplate(new AW.Templates.Link, 3);
obj.onCellClicked = function(event, col, row){if (col==3 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
the problem is that only the last column hyperlinks seem to work. i cant figure out what i am doing wrong. can someone give me a hand?
this is my code:
// set col 1 hyperlinks
obj.setCellLink("javascript:void(1);", 0,0);
obj.setCellTemplate(new AW.Templates.Link, 0);
obj.onCellClicked = function(event, col, row){if (col==0 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 2 hyperlinks
obj.setCellLink("javascript:void(1);", 1);
obj.setCellTemplate(new AW.Templates.Link, 1);
obj.onCellClicked = function(event, col, row){if (col==1 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 3 hyperlinks
obj.setCellLink("javascript:void(1);", 2);
obj.setCellTemplate(new AW.Templates.Link, 2);
obj.onCellClicked = function(event, col, row){if (col==2 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
// set col 4 hyperlinks
obj.setCellLink("javascript:void(1);", 3);
obj.setCellTemplate(new AW.Templates.Link, 3);
obj.onCellClicked = function(event, col, row){if (col==3 ) {window.open(href="http://"+(this.getCellText(4, row))); return false;};};
February 11,