creating hyperlinks
this code will create hyperlinks from the second column:
var link = new Active.Templates.Link;
link.setAttribute("href", function() {
return this.getItemProperty("value");
});
obj.setColumnTemplate(link, 1);
Now, i would like to create hyperlinks in another column, using the text from the second column.
I know how to retrieve a value from the second column by selection:
function mySelect(){
var index = this.getSelectionProperty("index");
var text = this.getDataProperty("text", index, 1);
alert(text);
}
obj.setAction("selectionChanged", mySelect);
However, I did not succeed in combining these, so that hyperlinks are created in a column, based on values of another. Is that possible?
btw, I use plain text, not XML
var link = new Active.Templates.Link;
link.setAttribute("href", function() {
return this.getItemProperty("value");
});
obj.setColumnTemplate(link, 1);
Now, i would like to create hyperlinks in another column, using the text from the second column.
I know how to retrieve a value from the second column by selection:
function mySelect(){
var index = this.getSelectionProperty("index");
var text = this.getDataProperty("text", index, 1);
alert(text);
}
obj.setAction("selectionChanged", mySelect);
However, I did not succeed in combining these, so that hyperlinks are created in a column, based on values of another. Is that possible?
btw, I use plain text, not XML
Heeko
March 6,