If you are making cross domain request then you need to signed you JS with autheticated certificate.
This is the best approach.
Otherwise you have to follow things as mentioned in
If you want to use signed scripts then you can find the info here
Hope this will help
Thanks & Regards
Amit
On 14 Aug 2007 12:34:27 -0000, AJAX_2-0@yahoogroups.com <AJAX_2-0@yahoogroups.com
> wrote:
Messages In This Digest (2 Messages)
- 1a.
- How to make AJAX request between different domains?? From: krishnakumar_08
- 1b.
- Re: How to make AJAX request between different domains?? From: Jeff Woodman
Messages
- 1a.
How to make AJAX request between different domains??
Posted by: "krishnakumar_08" krishnakumar_08@... krishnakumar_08
Mon Aug 13, 2007 10:58 am (PST)
Hi,
I am working on an application where I am reuired to make AJAX calls
between different domains.Below is the summary of my problem:
Say there is a domain
abc.com
there is another domain called
xyz.com
I want to make AJAX calls from abc.com to
xyz.com
=======================================================
Sample code would be:
(this will be contained in any page of abc.com)
var url = " xyz.com?strCriteria=testcriteria";
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", url, true);
req.onreadystatechange = callback;
req.send(null);
======================================================
When I do this it gives me "Access is denied".
How do I do that?
Please suggest any AJAX or non AJAX solution.
- 1b.
Re: How to make AJAX request between different domains??
Posted by: "Jeff Woodman" sanctumvoid@... sanctumvoid
Mon Aug 13, 2007 2:12 pm (PST)
My understanding is that most browsers won't allow cross-domain ajax requests as a security precaution - some may allow you to disable that, I dunno.
One thing I've done in the past is develop a server-side proxy that would exist ( i.e.) on abc.com and act as a go-between between abc's AJAX scripts and xyz's xml response.
-Jeff
http://www.sanctumvoid.net
----- Original Message ----
From: krishnakumar_08 <krishnakumar_08@... >
To: AJAX_2-0@yahoogroups.com
Sent: Monday, August 13, 2007 11:21:43 AM
Subject: [AJAX_2-0] How to make AJAX request between different domains??
Hi,
I am working on an application where I am reuired to make AJAX calls
between different domains.Below is the summary of my problem:
Say there is a domain
abc.com
there is another domain called
xyz.com
I want to make AJAX calls from abc.com to
xyz.com
============ ========= ========= ========= ========= =======
Sample code would be:
(this will be contained in any page of abc.com)
var url = " xyz.com?strCriteri a=testcriteria" ;
if (window.XMLHttpRequ est) {
req = new XMLHttpRequest( );
} else if (window.ActiveXObje ct) {
req = new ActiveXObject( "Microsoft. XMLHTTP") ;
}
req.open ("GET" , url, true);
req.onreadystatecha nge = callback;
req.send(null) ;
============ ========= ========= ========= ========= ======
When I do this it gives me "Access is denied".
How do I do that?
Please suggest any AJAX or non AJAX solution.
__________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/SPONSORED LINKSNeed to Reply?Click one of the "Reply" links to respond to a specific message in the Daily Digest.
Internet is the computer !![]()
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Individual | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe![]()