0

is it possible to call a PHP method (from a class) from within the xmlHttpRequest.open()?

xmlHttpRequest.open("GET",$class->method, true);

Thank you

1
  • not directly no, but create a other php file that call this method instead. Commented Feb 2, 2014 at 7:56

2 Answers 2

2

No. You'll have to write a PHP script that loads the class and calls the method.

Sign up to request clarification or add additional context in comments.

1 Comment

+1, for the straight answer.
1

Follow the link and you will get understand that how ajax works.Ajax

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.