954,176 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Excute PHP remotely using AJAX

Hi,
I have one client applicaiton writtn html, java script and AJAX and a remote server where I have a php script. Browser and remote server are deployed on two different machines. I want to execute php script uing ajax call with below code but it is loading php page into browser instead running php on remote server. I appreciate if anybody can provide some pointers on the same ?

Regards,
Sridhar

sridharjakkula
Newbie Poster
3 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Hi Sridhar, can you post your code so we can take a look at it?

In general, if you use the AJAX XMLHttpRequest object (or a library that encapsulates the AJAX functionality), you should be fine. The object should make the call and return the results in a function, instead of loading the page in the browser. If you post your code, I can take a look at it and give some tips.

Jeff

jeffcogswell
Light Poster
Staff Writer
48 posts since Jul 2010
Reputation Points: 202
Solved Threads: 0
 

Yeso, posting your code will help.
And...JQuery is my suggestion for you.
It have made ajax a Juice ;)
Edit: here is link to tutorials
http://docs.jquery.com/Tutorials

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

Hi Jeff and steve,
Thanks for your response. I solved my problem with simple ajax query. There was some problem in php configuration on server side, which was causing the problem.

jQuery does not suit my requirement as I am working on specific browser. Thanks for the link, I will refer some time.

Cheers,
Sridhar

sridharjakkula
Newbie Poster
3 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You