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...
Show off your group to the world. Share a photo of your group with us.

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 #135 of 136 |
Re: [AJAX_2-0] Digest Number 80

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 side component accessing both different domains
abc.com & xyz.com. Server needs configuration changes
to enable the same though.

cheers
KN


--- Amit Mahajan <amit.s.mahajan@...> wrote:

> 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
>
http://www.simple-talk.com/dotnet/asp.net/calling-cross-domain-web-services-in-a\
jax/

> If you want to use signed scripts then you can find
> the info here
>
http://www.mozilla.org/projects/security/components/signed-scripts.html
> 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:
> >
> > AJAX 2.0 = XHTML DOM + Remote JavaScript
> >
>
<http://groups.yahoo.com/group/AJAX_2-0;_ylc=X3oDMTJlYWJxcTRwBF9TAzk3MzU5NzE1BGd\
ycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRzZWMDaGRyBHNsawNocGgEc3RpbWUDMTE4NzA\
5NDg2Nw--
>
> > Messages In This Digest (2 Messages) 1a. How to
> make AJAX request
> > between different
>
domains??<http://mail.google.com/mail/?view=page&name=gp&ver=sh3fib53pgpk#114646\
02f36fce68_1a
>From:
> krishnakumar_08 1b.
> > Re: How to make AJAX request between different
>
domains??<http://mail.google.com/mail/?view=page&name=gp&ver=sh3fib53pgpk#114646\
02f36fce68_1b
>From:
> Jeff Woodman
> > View All
>
Topics<http://groups.yahoo.com/group/AJAX_2-0/messages;_ylc=X3oDMTJnaHZ2ZjBoBF9T\
Azk3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRzZWMDZG1zZwRzbGsDYXRw\
YwRzdGltZQMxMTg3MDk0ODY3?xm=1&m=p&tidx=1
>|
> Create
> > New
>
Topic<http://groups.yahoo.com/group/AJAX_2-0/post;_ylc=X3oDMTJnYW50NjUyBF9TAzk3M\
zU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRzZWMDZG1zZwRzbGsDbnRwYwRzd\
GltZQMxMTg3MDk0ODY3
>
> > Messages 1a. How to make AJAX request between
> different domains??
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/message/131;_ylc=X3oDMTJxaTdoZWY1BF9TAzk\
3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzEEc2VjA2Rtc2c\
Ec2xrA3Ztc2cEc3RpbWUDMTE4NzA5NDg2Nw--
>
> Posted
> > by: "krishnakumar_08" krishnakumar_08@...
> >
>
<krishnakumar_08@...?Subject=+Re%3AHow%20to%20make%20AJAX%20request%20betw\
een%20different%20domains%3F%3F>
> > krishnakumar_08
> <http://profiles.yahoo.com/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?strCriteri
> <http://xyz.com/?strCriteri>a=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.
> >
> >
> > Back to top
> >
>
<http://mail.google.com/mail/?view=page&name=gp&ver=sh3fib53pgpk#11464602f36fce6\
8_toc
>
> > Reply to sender
> >
>
<krishnakumar_08@...?Subject=Re%3AHow%20to%20make%20AJAX%20request%20betwe\
en%20different%20domains%3F%3F>|
> > Reply to group
> >
>
<AJAX_2-0@yahoogroups.com?Subject=+Re%3AHow%20to%20make%20AJAX%20request%20betwe\
en%20different%20domains%3F%3F>|
> > Reply via web post
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/post;_ylc=X3oDMTJxMmZ0aDdrBF9TAzk3MzU5Nz\
E1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzEEc2VjA2Rtc2cEc2xrA3\
JwbHkEc3RpbWUDMTE4NzA5NDg2Nw--?act=reply&messageNum=131
>
> > Messages in this topic
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/message/131;_ylc=X3oDMTM0cmU4ZmppBF9TAzk\
3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzEEc2VjA2Rtc2c\
Ec2xrA3Z0cGMEc3RpbWUDMTE4NzA5NDg2NwR0cGNJZAMxMzE-
>(2)
> >
> > 1b. Re: How to make AJAX request between
> different domains??
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/message/132;_ylc=X3oDMTJxZmFzcWxiBF9TAzk\
3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzIEc2VjA2Rtc2c\
Ec2xrA3Ztc2cEc3RpbWUDMTE4NzA5NDg2Nw--
>
> Posted
> > by: "Jeff Woodman" sanctumvoid@...
> >
>
<sanctumvoid@...?Subject=+Re%3A%20How%20to%20make%20AJAX%20request%20betwe\
en%20different%20domains%3F%3F>
> > sanctumvoid
> <http://profiles.yahoo.com/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@...<krishnakumar_08%40yahoo.com>
> > >
> > To: AJAX_2-0@yahoogroups.com
> <AJAX_2-0%40yahoogroups.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
> <http://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/
> > Back to top
> >
>
<http://mail.google.com/mail/?view=page&name=gp&ver=sh3fib53pgpk#11464602f36fce6\
8_toc
>
> > Reply to sender
> >
>
<sanctumvoid@...?Subject=Re%3A%20How%20to%20make%20AJAX%20request%20betwee\
n%20different%20domains%3F%3F>|
> > Reply to group
> >
>
<AJAX_2-0@yahoogroups.com?Subject=+Re%3A%20How%20to%20make%20AJAX%20request%20be\
tween%20different%20domains%3F%3F>|
> > Reply via web post
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/post;_ylc=X3oDMTJxaXYzZ21iBF9TAzk3MzU5Nz\
E1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzIEc2VjA2Rtc2cEc2xrA3\
JwbHkEc3RpbWUDMTE4NzA5NDg2Nw--?act=reply&messageNum=132
>
> > Messages in this topic
> >
>
<http://groups.yahoo.com/group/AJAX_2-0/message/131;_ylc=X3oDMTM0ZjZtN25nBF9TAzk\
3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRtc2dJZAMxMzIEc2VjA2Rtc2c\
Ec2xrA3Z0cGMEc3RpbWUDMTE4NzA5NDg2NwR0cGNJZAMxMzE-
>(2)
> >
> > Recent Activity
> >
> > - 2
> > New
>
Members<http://groups.yahoo.com/group/AJAX_2-0/members;_ylc=X3oDMTJndTBzZHZuBF9T\
Azk3MzU5NzE1BGdycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRzZWMDdnRsBHNsawN2bWJy\
cwRzdGltZQMxMTg3MDk0ODY3
>
> >
> > Visit Your Group
> >
>
<http://groups.yahoo.com/group/AJAX_2-0;_ylc=X3oDMTJmOHZyYTBqBF9TAzk3MzU5NzE1BGd\
ycElkAzE1ODU3NzY1BGdycHNwSWQDMTcwOTMzNDk5NwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzExODc\
wOTQ4Njc-
>
> > SPONSORED LINKS
> >
> > - Business application
>
software<http://groups.yahoo.com/gads;_ylc=X3oDMTJkYzhvYzM1BF9TAzk3MzU5NzE1BF9wA\
zEEZ3JwSWQDMTU4NTc3NjUEZ3Jwc3BJZAMxNzA5MzM0OTk3BHNlYwNzbG1vZARzdGltZQMxMTg3MDk0O\
DY3?t=ms&k=Business+application+software&w1=Business+application+software&w2=Aja\
x&w3=Ajax+cleaner&w4=Ajax+cleanser&w5=Ajax+florist&c=5&s=100&g=3&.sig=lX-zq5YpfF\
KeRiCQBDD6MQ
>
>
=== message truncated ===




________________________________________________________________________________\
____
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC



Mon Aug 20, 2007 1:15 pm

kkr_nair2000
Offline Offline
Send Email Send Email

Forward
Message #135 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