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

ajax cross domain compatability

Dear team,
"ajax" is not supporting for cross-domain compatibility.I want to implement cross-domain compatibility.Did any one know new technology or technique to implement the cross-domain compatibility.

Thank you,

With Regards,
Prem

prem2
Posting Whiz in Training
225 posts since Feb 2010
Reputation Points: 8
Solved Threads: 4
 

You could make your javascript request of a page on your own domain, which then gets the contents of the page you really want.

twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 

Dear twiss,
I want to send the request to another domain .Using ajax it is not possible .

Thank you,

With Regards,
Prem

prem2
Posting Whiz in Training
225 posts since Feb 2010
Reputation Points: 8
Solved Threads: 4
 


It isn't possible for the client side javascript to access another domain. <<<>>>

However this really doesn't sound like something that I would like to happen to any of my data. Sounds a lot like cross site scripting to me.

pclfw
Junior Poster
133 posts since Jun 2005
Reputation Points: 33
Solved Threads: 9
 

Speculation seldom helps form a solution. Whilst Javascript cannot directly access another domain, cross domain requests from a client side javascript are a routine event across the internet for API's such as Yahoo Pipes.

Prem2, what exactly are you trying to achieve? or perhaps more to the point is it just naughty or illegal lol

Sogo7
Newbie Poster
23 posts since May 2011
Reputation Points: 10
Solved Threads: 5
 

Dear Sogo7,
I have totally 5 servers. I want to access another server files like i want to post the data from one server to another server and get the information.

Thank you,

With Regards,
Prem

prem2
Posting Whiz in Training
225 posts since Feb 2010
Reputation Points: 8
Solved Threads: 4
 

Provided all five servers (or is that websites?) are yours then reading files is a trivial matter as is POSTing data from one to another using a basic HTML form or a cURL script that runs on the sending server.

The only benefit of using AJAX is that the page does not need to refresh as part of the process.

Sogo7
Newbie Poster
23 posts since May 2011
Reputation Points: 10
Solved Threads: 5
 

JSONP

JSONP is supported by jQuery.

Neither you nor your users should have security concerns if all servers involved are members of a "mutually trusted group".

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: