specify a frame target/name into a document.location.href ?
obj.setAction("click", function(src){
var i = src.getProperty("item/index");
var j = src.getColumnProperty("index");
if (j==10) {
document.location.href = this.getDataProperty("text", i, 10);
} ;
});
document.setAttribute("target", "_left");
does not work.
December 1,
thank you very much Alex, it works fine with the window.open method.
here is the code :
obj.setAction("click", function(src){
var i = src.getProperty("item/index");
var j = src.getColumnProperty("index");
if (j==10) {
window.open(this.getDataProperty("text", i, 10),"idolpage");
} ;
});
However it was a workaround to another method I was trying :
var table = new Active.XML.Table;
obj.setModel("data",table);
(...)
var link = new Active.Templates.Link;
link.setAttribute("target", "table");
obj.setColumnTemplate(link, 10);
obj.setProperty ("table/link", function(i, j){ if(j==10) {return this.getDataProperty("text", i, 10)}} );
It works in the means that col10 becomes a clickable link but it leads to "" , the return function I am using does not seem to return anything.
I even tried :
obj.setProperty ("table/link", "www.activewidgets.com" );
But it does return nothing so I guess it is linked to "table/link" property...but what ?
thank you
December 2,