title: Set ajax request in joomla using mootools
body: <p>I am having a prob for ajax request in joomla using mootools.</p>
  
  <pre><code> var url = '&lt;?php echo JURI::base();?&gt;index.php?option=com_test&amp;task=getselectmode&amp;selectedid='+$('parent_question').value;
  
     var params ={method: 'post',update:'test'};
    var myAjax = new Ajax(url, params);
   myAjax.request();
  </code></pre>
  
  <p>My prob is that, is there any to set onComplete event of the ajax request.
  i have set it as below on above code but nothing happen.</p>
  
  <pre><code>onComplete: function(response) { alert('Response: ' + response); }
  </code></pre>
  
  <p>Can you please provide full code of how to use ajax using mootools 1.1 ??</p>
  
  <p>Thanks in advance</p>