i have a show function in my test.php page , how may i call show() function in ajax instead url:test.php in following code
$.ajax({
url: **'test.php'**,
success: function(result) {
alert(ersult);
}
});
asked Jun 28, 2010 at 7:10
user1400
1,4094 gold badges26 silver badges36 bronze badges
1 Answer 1
You cannot do this as jQuery knows nothing about php functions. An AJAX call is always performed to some server side script in which processing takes place and returns the result. So you could call this function in the test.php script.
answered Jun 28, 2010 at 7:12
Darin Dimitrov
1.0m277 gold badges3.3k silver badges3k bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default