Requirement:
TS:7.4.1
Display certain records when the page first loads. Clicking on items on the page needs the records to be refreshed using AJAX. These records are obtained using an external call.
What I have done:
I have an external which returns results as desired on page load. Subsequent to any click action, I am calling the AJAX_URL token and the external is re-run, this time with parameters and the resultant content XML is populated correctly. Now, final page needs to re-painted with the new content XML output, by calling the appropriate XSLT template, so correct records are shown without the complete page reload.
If the response object is small enough, I suppose I could use jquery or javascript to consume them. However, since the content is returned using external and need to be consumed using XSLT, I am not sure how I can handle it, since XSLT templates are not triggering when the AJAX call is executed.
Any ideas on how to go about this one?