Forum Statistics

  • Forum Members: 4,499
  • Total Threads: 3,656
  • Total Posts: 1
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 04-28-2009, 12:41 AM   #1 (permalink)
 
Status: Newbie
Join Date: Apr 2009
Posts: 9

Rep Power: 13 tomcruse is on a distinguished road



Default xml node link word in text

I have a text properly read in from xml and displaying ok. But I'm trying to implement a link on one word in the text and that doesn't work. the xml node is

Code:

<bodytext><![CDATA[visit the website <a href="http://www.site.com">clicktext</a>]]></bodytext>

and should display;

visit the website clicktext

but displays;

visit the website <a href="http://www.site.com">clicktext</a>

Anybody any idea?
The code generating the html text field seems to work ok (it creates "arial font"), that specifc part goes;

Code:

this.createTextField("headline_txt"+depth,this.get NextHighestDepth(),0,h,400,20);
this["headline_txt"+depth].html = true;
this["headline_txt"+depth].autoSize = "left";
this["headline_txt"+depth].multiline = true;
this["headline_txt"+depth].wordWrap = true;
this["headline_txt"+depth].htmlText = '<font face="Arial, Helvetica, sans-serif">'+_parent._parent._parent._parent._parent._ parent.xmldata[2][j-1]+'</font>';

Anybody any clue how to escape the html link code being displayed literally? Tried &lt; and &gt; for < > but then it displayed those literally







online stock trading
fitness workout
tomcruse is offline Add Infraction for tomcruse   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2