![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Everything works fine but I'd like now to have some events name as URL links: events <event name="event1" / <event name="<a href="index.aspx?param=1" class="content_display">SECOND EVENT</a>" / /events This is the XML created on the backend to be passed to the client (maybe HTMLEncode is not the best idea ?). However using the same JS function, loop through nodes and in the list I get: *event1 *<a href='index.aspx?param=1'>SECOND EVENT</a How can I tell the browser to actually display the link for the second item? |
#3
| |||
| |||
|
|
xke wrote: Everything works fine but I'd like now to have some events name as URL links: events event name="event1" / event name="<a href="index.aspx?param=1" class="content_display">SECOND EVENT</a>" / /events This is the XML created on the backend to be passed to the client (maybe HTMLEncode is not the best idea ?). However using the same JS function, loop through nodes and in the list I get: *event1 *<a href='index.aspx?param=1'>SECOND EVENT</a How can I tell the browser to actually display the link for the second item? If your code really sets innerHTML then I don't understand why you do not get a link. The result you see would occur if you set innerText or used document.createTextNode(). -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |