:: Forum >>

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.setStyle( "border-style", "none" );
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"; };

Monday, May 26, 2008
You should use window.open() method instead on window.location.
Alex (ActiveWidgets)
Tuesday, May 27, 2008

This topic is archived.

Back to support forum

Forum search