<![CDATA[ [TIP] Easy AJAX feedback - My Forums]]> https://forums.modx.com/thread/?thread=19712 <![CDATA[Re: [TIP] Easy AJAX feedback]]> https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109566
thanks!

Bye,

Blaise]]>
grunt_lord Mar 17, 2006, 11:22 AM https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109566
<![CDATA[Re: [TIP] Easy AJAX feedback]]> https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109565
The way you ask for request on your server side, you need to do it using get or post method, usually this is provided by prototype. If you want to postback a form, do Form.serialize in full Prototype.

Hope that helps.]]>
wendy Mar 17, 2006, 09:02 AM https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109565
<![CDATA[ [TIP] Easy AJAX feedback]]> https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109564 Finally, i never got the xml parser to work on the client side, so I thought about the good old days of DOS, when I programmed in QBasic and QuickC. Sequential file with \t and \n separated data :

+ each item is on its line, separated from the other by a \n
+ each field is divided from the others by a \t

This way, you can create a manual parser in around 4 lines of javascript by using the split() function :

var myresponsefields = request.responseText.split('\t');


then paste the data at the good place. Prototype helps a lot there with helper functions like Array.each() wich let you call a function for each item of the array.]]>
grunt_lord Mar 17, 2006, 02:37 AM https://forums.modx.com/thread/19712/tip-easy-ajax-feedback#dis-post-109564