Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

links in XML?

11:37 am on Mar 18, 2012 (gmt 0)

New User

5+ Year Member

joined:Mar 12, 2012
posts: 5
votes: 0

<LastItems><a href="test">whatever</a></LastItems>

now when i make my javascript this is what i got going on.

 <div spry:region="ds1">
<th spry:sort="Name">Name</th>
<th spry:sort="RecentPointsSpent">RecentPointsSpent</th>
<th spry:sort="RecentPointsEarned">RecentPointsEarned</th>
<th spry:sort="CurrentPoints">CurrentPoints</th>
<th spry:sort="LastItems">LastItems</th>
<tr spry:repeat="ds1">

how come it doesnt show the link? It shows it as undefined?
11:43 pm on Mar 18, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 31, 2005
votes: 0

For starters your XML is invalid as you are using the reserved characters of < and >

Maybe you should split your LastItems so you have one that contains the text and the other the URL, and you then have your javascript write that into the <a href="{LastItemsURL">LastItems</a>