Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
Cross domain calls issue in Firefox and Safari using AJAX

 
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Help
View previous topic :: View next topic  
Author Message
sarav
New one
New one


Joined: 27 Oct 2008
Posts: 1

PostPosted: Mon Oct 27, 2008 6:12 am    Post subject: Cross domain calls issue in Firefox and Safari using AJAX Reply with quote

Hi,

I have implemented prototype.js file to use AJAX calls in my application. I need to call cross domain to get some value from different server. The HTML and prototype file are hosted in https://wwww.myserver.xyz.com.I need to call other sever which URL ends with same as my server xyz.com (https://wwww.otherserver.xyz.com)

The below mentioned code is working fine only in IE browser, But it is not working in Firefox and Safari browsers.
Could you please assist me?.Your help is very appreciated.

Thanks a lots,
Saravanan

Sample Code:

function loadResponse()
{
//This my sever where html and js files are hosted
//https://wwww.myserver.xyz.com;

//need to call other sever which URL ends with same xyz.com
var url = 'https://wwww.otherserver.xyz.com'

document.domain ='xyz.com';

new Ajax.Request(url,
{
method:'get', onSuccess: function(transport)
{
response = transport.responseText || "no response text";
parseResponse();
},
onFailure: function()
{
parseAlternativeResponse();
}
});

}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 Advertisements
 XML & Copyright Notice 
    


Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X


Link to our site:

  


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos


Normal Bookmark


Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax


Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?


Credits:
it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert