Modify the server side functions using jquery
<p>I am developing one website using cakephp and jquery technologies.
Server-side there are some functions which handles sql queris. </p>

<p>As per requirement I want to modify server side functions on client side using jquery AJAX call.</p>

<p><strong>E.g.</strong> : Below is the function on server side to modify users information.</p>

<pre><code>function modifyUser(username,userid) {
  //update query statements
}
</code></pre>

<p><strong>Then jquery AJAX call will be like this :</strong></p>

<pre><code>$.ajax({
  url: 'users/modiyUser',
  success: function() {
    alert("Updation done") or any statements.
  }
});
</code></pre>

<p>and I want to modify above i.e. server side function depending upon client input criteria.</p>

<pre><code>$.ajax({
 function users/modiyUser(username,userid) {
    // I will write here any other statements which gives me some other output.
 }
});
</code></pre>

<p>Above AJAX call syntax may not present, but i think you all understood what I am trying to do <strong>I simply wants to modify/override server side functions on client side.</strong></p>

<p>Please let me know is there any way to resolve above mentioned requirement.</p>

<p>Thanks in adavance</p>
