:: Forum >>

Dynamic links in columns

Hello,

I have still no answer to following question (sorry for posting again. But I don't know how to solve the problem):
I have a grid with 3 columns (name, email and country). The data for the grid is inside a xml-File. My problem is: i don't know, how to make the email-addresses in the email-column as links (For example: the email-address "example@example.com" should be a Email-link to example@example.com).
It would be great if you could help me because I'm a Active-Widgets beginner. Thanks a lot in advance,

Kim
Kim
Thursday, August 26, 2004
easiest thing to put the HTML for a mailto URL in place of
the address.

Friday, August 27, 2004
Convert all special chars in html to entity chars before build into xml, Example, use htmlspecialchars in php script

DH
Saturday, August 28, 2004
Thanks a lot!

I have converted all special chars!

Greetings,
Kim
Kim
Monday, August 30, 2004
Set up a Link Template on that column.

var myGrid = ...; // dont forget to set up the "link" itemProperty
var mailTemplate = new Active.Templates.Link;
// override the default link behavior for mailto
mailTemplate.setAttribute("href", function() {
return "mailto:" + this.getItemProperty("link");
} );
myGrid.setColumnTemplate( mailTemplate, emailColumnIndex );
gbegley
Tuesday, August 31, 2004
This doesn't work.

Using this example returns "Object does not support this property or method".

My kingdom for some decent documentation.
Thursday, September 22, 2005
Hi.

The example given by gbegley on Tuesday, August 31, 2004, worked for me.

Thank you very much,

jinxs_
jinxs_
Saturday, November 12, 2005

This topic is archived.


Back to support forum

Forum search