www.webdeveloper.com
Results 1 to 3 of 3

Thread: trying to make a link in XML

  1. #1
    Join Date
    Jun 2003
    Location
    Jerzy
    Posts
    459

    trying to make a link in XML

    HTML Code:
      <Members>
        <Member>
          <Name>whatever</Name>
          <RecentPointsSpent>20</RecentPointsSpent>
          <RecentPointsEarned>40</RecentPointsEarned>
    	  <CurrentPoints>120</CurrentPoints>
    	  <LastItems><a href="test">whatever</a></LastItems>
        </Member>
      </Members>
    now when i make my javascript this is what i got going on.
    HTML Code:
        <div spry:region="ds1">
          <table>
            <tr>
              <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>
            <tr spry:repeat="ds1">
              <td>{Name}</td>
              <td>{RecentPointsSpent}</td>
              <td>{RecentPointsEarned}</td>
              <td>{CurrentPoints}</td>
              <td>{LastItems}</td>
            </tr>
          </table>
        </div>
    how come it doesnt show the link? It shows it as undefined?

  2. #2
    Join Date
    Aug 2006
    Posts
    1,886
    Presuming the link is intended as data, not structure, it should be:
    Code:
    <LastItems><![CDATA[<a href="test">whatever</a>]]></LastItems>
    Dave

  3. #3
    Join Date
    Jun 2003
    Location
    Jerzy
    Posts
    459
    Quote Originally Posted by tracknut View Post
    Presuming the link is intended as data, not structure, it should be:
    Code:
    <LastItems><![CDATA[<a href="test">whatever</a>]]></LastItems>
    Dave
    ty good sir

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles