Hi Josh, well I guess that's exactly what Ajax libraries are supposed to do. I guess you can use for instance Prototype for this kind of interaction. I've used it several times in the past.
The only things you need is a javascript function inside your page that gets the id of the element to be replaced and the url gets the XML to put into the element. See the script.aculo.us wiki[1] for a sample of the Ajax.Updater function. Regards, Jeroen Reijn [1]http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater -----Original Message----- From: Josh2007 [mailto:[EMAIL PROTECTED] Sent: Fri 8/24/2007 16:08 To: [email protected] Cc: Subject: how to get an Ajax request work with a pipeline without CForms? Hi all, I would like to know if there's a way to implement some simple Ajax futures with a pipeline without making use of CForms or creating Java classes (I'm not comfortable with Java). The idea is: When answering to a request like http://localhost:8080/cocoon/ajax/some-pattern, to connect to the required sitemap match pattern="some-pattern", to process it and output the xml result asynchronously, replacing the existing counterpart in the page based on the node or element id generated by the pipeline. Does anyone have any idea on how to proceed? Thanks, Josh -- View this message in context: http://www.nabble.com/how-to-get-an-Ajax-request-work-with-a-pipeline-without-CForms--tf4323813.html#a12313169 Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
