3.2.0

Opening a link in a new window with double click

Trying to solve this almost all day long without any luck I turn to you:

I have a grid that is fed with information from a script in Lotus Domino. The link produced is a valid url reported to the last column cell.
BUT, I do not want to use the built in function for firering up the URL as it only can be done with a single click. It must be a double click as I want to close the resulting URL-window in order to go back to the result from a search. By doing so I will not loose the position or the sort that I have done.
However, I just can't get the target set for the URL to be "_new"
This is my code, what should be done.

var obj = new AW.UI.Grid;
obj.setId("myGrid");
obj.setVirtualMode(false);
obj.setCellText(myData);
obj.setHeaderText(myHeaders);
obj.setColumnCount(4);
obj.setStyle( "border-style", "none" );
obj.setRowCount(3);
obj.setSelectionMode("multi-row");
obj.setCellTemplate(new AW.Templates.Link);
obj.setControlSize(780, 400 );
obj.onCellDoubleClicked = function(event, col, row){window.location.href= myData[row][4] };
obj.onCellClicked = function(event, column, row) { window.status = "Single click"; };

document.write(obj);
Rulle
May 26,
You should use window.open() method instead on window.location.
Alex (ActiveWidgets)
May 27,

This topic is archived.

See also:


Back to support forum