Best way to refresh this table on-the-fly
I have some simple XML like this:
<Keyphrase Phrase = "This is phrase one"/>
<Keyphrase Phrase = "This is phrase two"/>
<Keyphrase Phrase = "This is phrase three"/>
And I have an XSLT that contains:
<!-- Build KeyPhrase Rows -->
<xsl:value-of select="@Phrase" />
But now I wish to update the content of that table on the fly. I understand I can use XMLHttpRequest() to fetch new data.
However, I do not know what format to use for those updates or how to insert the new data into the table.
I can supply the updates in XML. But can I re-use my existing XSLT template to parse it and repopulate the displayed table? This seems elegant and tidy but is it possible and if so, how would I do it?
So I was also considering responding to the XMLHTTPRequest in JSON format. I think it may be easier to process JSON that it is to parse the XML.
Asumming I have a clean (error checked) response from XMLHttpRequest() what do I do here?
I would prefer to avoid using any libraries such as jQuery for this project.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread