Calling methods or functions with Jquery
- by Ross
So I can call a php page using jquery
$.ajax({ type: "GET",
url: "refresh_news_image.php",
data: "name=" + name,
success: function(html) {
alert(html)
$('div.imageHolder').html(html);
}
});
However this getting a bit messy, I have a few .php files that only really preform very simple tasks. If I want to call a method
$images-refresh_image();
is this possible. Failing that I could just create a big file with lots of functions in it?
Thanks,
Ross