working day with Mootools.. find good tips here: http://davidwalsh.name blog

Well, a web dev day again today.
I looked for a solution to auto-update form in ajax.
I found solution here:
http://davidwalsh.name/periodical-ajax-requests-mootools-12
and here: http://davidwalsh.name/return-multiple-values-from-ajax-using-mootools
thanks to David 😉

I modified a bit the script to return form parameters in the ajax
request, here you are if you want it:

var request = new Request({        url: 'ajax.php',        method: 'post',        onComplete: function(fullresponse) {                var response= fullresponse.split('::');                $('result0').set('html',response[0]);                $('result1').set('html',response[1]);        }})var sendForm = function() {        request.send($('form3'));}sendForm.periodical(5000);
Advertisements

2 thoughts on “working day with Mootools.. find good tips here: http://davidwalsh.name blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s