Search the web
Sign In
New User? Sign Up
AJAX_2-0 · AJAX 2.0 = XHTML DOM + Remote JavaScript
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: Digest Number 80   Message List  
Reply | Forward Message #134 of 136 |
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)

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/
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Y! Messenger

PC-to-PC calls

Call your friends

worldwide - free!

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Internet is the computer !



Tue Aug 14, 2007 1:04 pm

amsm_in
Offline Offline
Send Email Send Email

Forward
Message #134 of 136 |
Expand Messages Author Sort by Date

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...
Amit Mahajan
amsm_in
Offline Send Email
Aug 18, 2007
6:15 pm

Hi, Browsers are not legally allowed to do cross domain scripting - some of them gives a warning message b4 accessing cross domain scripts. Solution:- Server...
R Krishnakumar
kkr_nair2000
Offline Send Email
Aug 20, 2007
8:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help