http://groups.google.com/group/jquery-en/msg/546500f34de23d79
The problem that Darjana was asking about shouldn't apply in your case; just be sure to use the full absolute URL to your Server 2.
You'll need to fill in the specifics, but you can see where the jQuery code sends some data up to the server, the PHP code on the server reads that data and sends back a JSON response (actually JSONP - that's how you work around the cross-domain issue), and the jQuery code reads that data that the server sent.
-Mike
On Mon, Nov 30, 2009 at 8:40 AM, Bjorn Symister <bjorn.oso@gmail.com> wrote:
I have posted on craigslist with no luck, so I will post here. I am seeking a specific jQuery solution. Please name your rate and I can pay through paypal. I needed this solution last week :)
My Scenario, 2 Servers, 2 Scripts, 1 Form.
Form collects Email addresses. This form is on Server 1: my client end server. I can only place html,javascript,css on this server. No server side scripts.
On Server 2: I will have a php script that will receive the data or use jQuery getJSON to get it..
Problem: I need to handle the submission of the data without refreshing the entire page (need Ajax). Problem is however using Ajax, you cannot send data to another domain (So I've read). Options are using an iFrame or JSON. I would prefer JSON, however at this point, I just need a solution. If you know how to do this, please just name your fixed rate to provide the scripts and I'll take it from there.
Thanks,
Bjorn
No comments:
Post a Comment