Ad:
 
Similar Threads
Jul 26th, 2010
0

Excute PHP remotely using AJAX

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sridharjakkula is offline Offline
3 posts
since Mar 2010
Jul 26th, 2010
0

Re: Excute PHP remotely using AJAX

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
Reputation Points: 18
Solved Threads: 0
Newbie Poster
jeffcogswell is offline Offline
9 posts
since Jul 2010
Jul 27th, 2010
0

Re: Excute PHP remotely using AJAX

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
Last edited by evstevemd; Jul 27th, 2010 at 10:25 am.
Reputation Points: 311
Solved Threads: 230
Nearly a Posting Maven
evstevemd is offline Offline
2,446 posts
since Jun 2007
Jul 27th, 2010
0

Re: Excute PHP remotely using AJAX

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sridharjakkula is offline Offline
3 posts
since Mar 2010
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Editable Gridview
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Waiting for image src to finish loading





About Us | Contact Us | Advertise | Acceptable Use Policy
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC