Calling methods or functions with Jquery

Posted by Ross on Stack Overflow See other posts from Stack Overflow or by Ross
Published on 2010-04-12T07:23:54Z Indexed on 2010/04/12 7:33 UTC
Read the original article Hit count: 540

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about query