I am trying to understand the most elegant method for interacting with xowiki asynchronously.
To try to understand I took a look at the toc includelet which seems to be the only includelet that uses AJAX (for cosmetic effects).
The Javascript code begins as follows:
var transaction = YAHOO.util.Connect.asyncRequest('GET', \
href + '?template_file=view-page&return_url=' + href,
{
success:function(o) {...etc....
This seemed to suggest to me that there is a built-in 'href' xowiki object to which the parameters template_file and return_url were being passed, however requests to the url in a standard installation yield a "Page 'href' is not available." error. (i.e. http://www.server.com/href?template_file=view-page&return_url=href)
Clearly I have mis-understood!
I can see that one way to arrange an AJAX interaction would be to create a plain xowiki page object containing embedded tcl code that extracts and formats the data, but is this the best or recommended method?
Can anyone please explain the above code for me?
Thank you
Richard