Thank you for the response, I read it thoroughly but I think I'm still
missing something...
Basically, every request worked on by Magnolia generates a dynamic
response, usually with a JSP. So what you will want to do is write a
second script to do the server side stuff after an AJAX call.
The first script is the main script, with some button calling the
JavaScript AJAX functions. The trick is that the AJAX function requests
a "node/page" (or the JSP directly). I often use subtemplates, because
But if you call the jsp directly you cannot access the dialog properties
unless you explicitly load the page/paragraph inside the jsp (which is
possible but I don't really like it, seems always too hardcoded). This
may be the good solution if the ajax page is not related to magnolia in
any way, but this isn't my case.
the JSP has to respond according to the current page. So all the second
JSP has to do is generate the XML response or a simple text. You might
Subtemplating was my first guess, a template containing the single
paragraph I want to update is the simplest solution. But this approach,
in my opinion is limited to 10-20 templates max, above this I think
it'll become hard to handle, expecially when a single page template
contains more than one paragraph that should be ajax-called.
even create a page which has paragraphs for each individual
functionality you want to return to the AJAX call.
Let me rephrase my question: which is the best ajax integration with
magnolia that allows me to ajax-update a hundred or more magnolia
paragraphs? (Obviously not all of them in the same request...)
Regards, Danilo.
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------