Modify the server side functions using jquery
Posted
by ant
on Stack Overflow
See other posts from Stack Overflow
or by ant
Published on 2010-04-29T08:10:20Z
Indexed on
2010/04/29
8:17 UTC
Read the original article
Hit count: 248
Hi, I am developing one website using cakephp and jquery technologies. Server-side there are some functions which handles sql queris.
As per requirement I want to modify server side functions on client side using jquery AJAX call.
E.g. : Below is the function on server side to modify users information.
function modifyUser(username,userid) {
//update query statements
}
Then jquery AJAX call will be like this :
$.ajax({
url: 'users/modiyUser',
success: function() {
alert("Updation done") or any statements.
}
});
and I want to modify above i.e. server side function depending upon client input criteria.
$.ajax({
function users/modiyUser(username,userid) {
// I will write here any other statements which gives me some other output.
}
});
Above AJAX call syntax may not present, but i think you all understood what I am trying to do I simply wants to modify/override server side functions on client side.
Please let me know is there any way to resolve above mentioned requirement.
Thanks in adavance
© Stack Overflow or respective owner