:: Forum >> Version 2 >>

New popup window using a function?

i'm using the following code to generate a link, but cant get the link to popup in a new window...

var myLinks = function(columnrow){ 
        return 
"www.activewidgets.com"
    } 

    
obj.setCellLink(myLinks1); 
    
obj.setCellTemplate(new AW.Templates.Link1);
 
help? what do i need to add to make the link pop in a new window?

thanks!!! AW is incredible.
seattle wa
Wednesday, March 12, 2008
Add target attribute to the link template -

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

var 
myLinks = function(columnrow){ 
        return 
"www.activewidgets.com"


obj.setCellLink(myLinks1); 
obj.setCellTemplate(linkTemplate1);
 
Alex (ActiveWidgets)
Thursday, March 13, 2008



This topic is archived.

Back to support forum

Forum search