942,528 Members | Top Members by Rank

Ad:
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
Similar Threads
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
Staff Writer
Reputation Points: 202
Solved Threads: 0
Light Poster
jeffcogswell is offline Offline
48 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 11:25 am.
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 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

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
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
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC