Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make Links Links

Status
Not open for further replies.

G00GLER

Instructor
May 17, 2005
57
0
0
US

scenario is I am reading an xml file and i need to show how one would display links as links, i should be able to do this in c# or using xslt and javascript: here is where i am having a problem with the javascript:
Code:
\\Reading in Layer
var strTemp = document.all["kyle"].innerHTML;
var TheLink="http:"; \\some link would be generated here

MakeLinksLinks = strTemp.replace(TheLink, "<a href=\'"+TheLink+"\'>"+TheLink+"</a>");
var TheVal=eval(strTemp);
alert(TheVal);
Problem is inserting the </a> tag.

any pointers or references would be much appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top