Hi friends,
I m using mootools 1.1 for developing joomla component.
i want to get the form posted data in onComplete block.
i don't want to set the post data in response.
Is it possible? if yes then please reply how can i do that?
Thanks in advance.
Hi friends,
I m using mootools 1.1 for developing joomla component.
i want to get the form posted data in onComplete block.
i don't want to set the post data in response.
Is it possible? if yes then please reply how can i do that?
Thanks in advance.
You can get it via "this.options.data".
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
new Ajax("test.php", {
method: 'post',
data: {field1:"value1", field2:"value2"},
onComplete: function(text) {
this.options.data; // here is your data
}
}).request();
});
</script>