View Single Post
Old 10-10-2007, 04:02 PM   #4 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

Ah, I see. Try this:

Add the following code to your addRow function:

Code:
var pAnchor = document.createElement('a');
pAnchor.href = 'mailto:' + email;

var pSpan = document.createElement('span');
pSpan.className = 'notaction';
pSpan.appendChild(pAnchor);
Then replace this code:

Code:
document.createElement("SPAN");td4.appendChild(document.createTextNode(email));
with:

Code:
td4.appendChild(pSpan);
Karl is offline  
Reply With Quote