:: Forum >> Version 2 >>

how to open new window by link

More information on this topic is available in the documentation section: /aw.ui.grid/cell-link.html.

I want open new window by link , how can i do?
qian xian jie
Tuesday, April 25, 2006
You can set 'target' attribute in the link template -

var obj = new AW.UI.Grid;
    
obj.setCellData("cell");
    
obj.setHeaderText("header");

    
obj.setColumnCount(10);
    
obj.setRowCount(10);

    var 
link = new AW.Templates.Link;
    
link.setAttribute("target""_new");

    
obj.setCellTemplate(link);
    
obj.setCellLink("http://www.google.com");

    
document.write(obj);

 
Alex (ActiveWidgets)
Tuesday, April 25, 2006



This topic is archived.

Back to /aw.ui.grid/cell-link.html

Documentation:

Forum search