/    Sign up×
Community /Pin to ProfileBookmark

Problem in implementing ajax

hi.
Two ajax and php files are located in a domain. and, ajax is calling in another domain.
Why get a response from php is empty? While not empty.
Like the image attached.

thanks for your answer.

[upl-file uuid=1d1fec58-5ee3-404a-85c5-eadc60da1bef size=11kB]ajax-response.jpg[/upl-file]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@mor_mahauthorJul 11.2010 — I realized that xhr.readystate = 4 and xhr.status = 0. What does this mean?
Copy linkTweet thisAlerts:
@tirnaJul 11.2010 — I don't think you can send an ajax request to another domain.
Copy linkTweet thisAlerts:
@criterion9Jul 11.2010 — The only way to use cross-domain ajax is to provide a server-side proxy or to call the initial javascript from the target domain (similar to google services).
×

Success!

Help @mor_mah spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...