i am newbie in Jquery and Ajax.. Please bear with my stupid problem..
i am trying to call method say test() inside class hello through ajax call..
hello.php
class hello
{
public function test()
{
//some data
}
public function abc()
{
//some data
}
}
now i want to call test() from another php file...
for example:
b.php
$.ajax({
url : 'hello.php->test()', //just for example i have written it bcz it should call only test() not abc()..
})
is it possible to call it directly? i have went through $.ajax() api but i din't found anything helpful..
All answer will be appreciates...