I would like to make the text in the last node of my XML a clickable URL Link. I have tried:
<sf_grant="ReadMore"><![CDATA[<a href='http://www.google.com'>Read more about Oregon</a>.]]></sf_grant>
no luck.
Here is my load and array set up;
and here is one item from my XML;Code:myXML = new XML(); myXML.ignoreWhite = true; myXML.load("states.xml"); myXML.onLoad = function(succes){ if(succes){ trace (state_no); var root = this.firstChild; nodes = root.childNodes; mc_allstates.Title_txt.text = nodes[state_no].attributes.name; subnodes = nodes[state_no].childNodes; mc_allstates.f_total_txt.text = subnodes[0].firstChild.toString(); mc_allstates.f_increase_txt.text = subnodes[1].firstChild.toString(); mc_allstates.f_rank_txt.text = subnodes[2].firstChild.toString(); mc_allstates.u_current_txt.text = subnodes[3].firstChild.toString(); mc_allstates.u_last_txt.text = subnodes[4].firstChild.toString(); mc_allstates.u_50plus_txt.text = subnodes[5].firstChild.toString(); mc_allstates.bg_actual_txt.text = subnodes[6].firstChild.toString(); mc_allstates.bg_percent_txt.text = subnodes[7].firstChild.toString(); mc_allstates.hp_current_txt.text = subnodes[8].firstChild.toString(); mc_allstates.hp_increase_txt.text = subnodes[9].firstChild.toString(); mc_allstates.sf_grant_txt.text = subnodes[10].firstChild.toString(); } else trace("Error loading XML document") }
Code:<title name="Oregon"> <f_total>46</f_total> <f_increase>26</f_increase> <f_rank>$12</f_rank> <u_current>96%</u_current> <u_last>5</u_last> <u_50plus>$5,000</u_50plus> <bg_actual>55%</bg_actual> <bg_percent>25%</bg_percent> <hp_current>-8.11%</hp_current> <hp_increase>48 **</hp_increase> <sf_grant>Read more about Oregon</sf_grant> </title>




Reply With Quote