guntersammet
Programmer
Howdy,
I defined an XML document:
and tried to display it in HTML:
I was able to display the links (web and email) but I couldn't get them to work as link.
How can I get the webpage to display the links that when I click on them, that they go to the link. Can I define the target as well?
TIA Gunter
I defined an XML document:
Code:
...
<LIST>
<COMPANY_REC ID="1">
<COMPANY>My Company</COMPANY>
<WEB>[URL unfurl="true"]www.sammet.net</WEB>[/URL]
<EMAIL>Me@MyCompany.com</EMAIL>
<CONTACT>MyContact</CONTACT>
</COMPANY_REC>
</LIST>
...
and tried to display it in HTML:
Code:
<table datasrc="#xmldso_list" border="1">
<thead>
<tr align="left"><th>Company name</th><th>Web</th><th>Email</th><th>Contact</th></tr>
</thead>
<tr align="left">
<td onclick="testclick(this)"><div datafld="COMPANY"></td>
<td onclick="testclick(this)"><div datafld="WEB"></td>
<td onclick="testclick(this)"><div datafld="EMAIL"></td>
<td onclick="testclick(this)"><div datafld="CONTACT"></td>
</tr>
</table>
I was able to display the links (web and email) but I couldn't get them to work as link.
How can I get the webpage to display the links that when I click on them, that they go to the link. Can I define the target as well?
TIA Gunter