473,508 Members | 2,226 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX Question

Hi All,

Q: Is it possible to send an XMLHttpRequest between 2 different
domains?

right now I'm using an Iframe to do so

thanks ;-)

Feb 13 '06 #1
12 2244
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:
Hi All,

Q: Is it possible to send an XMLHttpRequest between 2 different
domains?


nope.
Feb 13 '06 #2
Good Man wrote:
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:
Hi All,

Q: Is it possible to send an XMLHttpRequest between 2 different
domains?


nope.


umm - i've done it...

Feb 13 '06 #3
"Tony" <to****@dslextreme.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Good Man wrote:
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:
> Hi All,
>
> Q: Is it possible to send an XMLHttpRequest between 2 different
> domains?


nope.


umm - i've done it...


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?

--
Dag.
Feb 14 '06 #4
On 14 Feb 2006 08:20:26 +0100, "Dag Sunde" <da*@viz.no> wrote:
"Tony" <to****@dslextreme.com> wrote in message
news:11*********************@z14g2000cwz.googlegr oups.com...
Good Man wrote:
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:

> Hi All,
>
> Q: Is it possible to send an XMLHttpRequest between 2 different
> domains?

nope.


umm - i've done it...


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?


it's still simple, you just configure IE to "access data sources
across domains" or in Mozilla you get appopriate browser privileges
for your script.

Smple doesn't mean practical though.

Jim.
Feb 14 '06 #5
"Jim Ley" <ji*@jibbering.com> wrote in message
news:43****************@news.individual.net...
On 14 Feb 2006 08:20:26 +0100, "Dag Sunde" <da*@viz.no> wrote:
"Tony" <to****@dslextreme.com> wrote in message
news:11*********************@z14g2000cwz.googleg roups.com...
Good Man wrote:
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:

> Hi All,
>
> Q: Is it possible to send an XMLHttpRequest between 2 different
> domains?

nope.

umm - i've done it...


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?


it's still simple, you just configure IE to "access data sources
across domains" or in Mozilla you get appopriate browser privileges
for your script.

Smple doesn't mean practical though.

Excactly... Which means it is't usable at all except when you're
working with an intranet where one have complete control over the UAs.

--
Dag.

Feb 14 '06 #6
Dag Sunde wrote:
"Tony" [...] wrote [...]
Good Man wrote:
sh*************@gmail.com wrote [...]:
> Q: Is it possible to send an XMLHttpRequest between 2 different
> domains?
nope.

umm - i've done it...


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?


Possibilities:

A) The OP used `document.domain' since the domains were different but
their second-level domain was not.

B) a) The OP used a signed script or set a preference so that no signed
script was necessary, then he requested the required privilege.

b) The OP did not sign the script and accepted that users would get
a security dialog when he requested the required privilege.

C) None of the above.
PointedEars
Feb 14 '06 #7
VK

Thomas 'PointedEars' Lahn wrote:
Possibilities:

A) The OP used `document.domain' since the domains were different but
their second-level domain was not.

B) a) The OP used a signed script or set a preference so that no signed
script was necessary, then he requested the required privilege.

b) The OP did not sign the script and accepted that users would get
a security dialog when he requested the required privilege.

C) None of the above.


D) (and the main one) OP goes to say
<http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Content_Retrieval/>
to take any content stealing script of his choice (free or
"commercial") and enjoy ever after.

Feb 14 '06 #8
VK wrote:
Thomas 'PointedEars' Lahn wrote:
Possibilities:

A) The OP used `document.domain' since the domains were different but
their second-level domain was not.

B) a) The OP used a signed script or set a preference so that no signed
script was necessary, then he requested the required privilege.

b) The OP did not sign the script and accepted that users would get
a security dialog when he requested the required privilege.

C) None of the above.
D) (and the main one) OP goes to say

<http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Content_Retrieval/> to take any content stealing script of his choice (free or
"commercial") and enjoy ever after.


news:43********@news.wineasy.se
PointedEars
Feb 14 '06 #9
Dag Sunde wrote:
"Tony" <to****@dslextreme.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Good Man wrote:
sh*************@gmail.com wrote in news:1139823895.923599.313360
@g44g2000cwa.googlegroups.com:

> Hi All,
>
> Q: Is it possible to send an XMLHttpRequest between 2 different
> domains?

nope.


umm - i've done it...


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?


I just checked out what I had done before - and noticed that I had only
tested it as a local file - never on a server.

As a local file, it's no problem to get the HTML response from, say,
Google or Yahoo (which are the targets that I tried). But when I put
the same file on a server, I get "permission denied".

So, I suppose that technically I've done it, but not in any useful
manner. My apologies for the fogged memory...

Feb 14 '06 #10
"Tony" <to****@dslextreme.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Dag Sunde wrote:
"Tony" <to****@dslextreme.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
> Good Man wrote:
>> sh*************@gmail.com wrote in news:1139823895.923599.313360
>> @g44g2000cwa.googlegroups.com:
>>
>> > Hi All,
>> >
>> > Q: Is it possible to send an XMLHttpRequest between 2 different
>> > domains?
>>
>> nope.
>
> umm - i've done it...
>


Then I suggest you tell us how...?

With a serverside proxy, yes of course... Then it is simple, but
a cross-domain XMLHttpRequest directly from the client?


I just checked out what I had done before - and noticed that I had only
tested it as a local file - never on a server.

As a local file, it's no problem to get the HTML response from, say,
Google or Yahoo (which are the targets that I tried). But when I put
the same file on a server, I get "permission denied".

So, I suppose that technically I've done it, but not in any useful
manner. My apologies for the fogged memory...


Thank you, Tony...

You had me worried there for a while...

:-)

--
Dag.
Feb 14 '06 #11
here is a nice workaround

http://ajaxextended.com/

not really AJAX but nice solution

Feb 20 '06 #12
<sh*************@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
here is a nice workaround

http://ajaxextended.com/


Hmpf...

That is just a proxy script on the server.

You can do exactly the same with an AJAX serverside
proxy script and call it via the usual XmlHttp...

--
Dag.
Feb 20 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2041
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
21
6091
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
9
1664
by: darrel | last post by:
Last week I asked about ASP.net 2.0 AJAX frameworks and there appears to be several to choose from. I haven't used ASP.net 2.0 yet, but from doing a bit of reading, it appears that ASP.net 2.0...
31
3074
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
1
1834
by: codefragment | last post by:
Hi I have asked this on the official asp.net forums but no luck so thought I'd try here Assume you have a page with a filter control and a grid view and many other controls on it. When the...
8
1690
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm about to finally make the jump and start a new site using AJAX. THe question i have for all of you AJAX developers out there is which one? 1. The Standard AJAX frame work 2. The Tool kit....
2
2193
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
2
1583
by: Cirene | last post by:
3 quick questions... 1. Are the controls in the AJAX Futures download "beta" or the release and stable version? 2. Also, where is the best way to learn how to implement these? (Other than by...
6
1538
by: Jonathan Wood | last post by:
Greetings, I'd like to implement some AJAX features on an existing ASP.NET site. I have one example of doing this but, otherwise, don't know much about it. I have one question, though, about...
22
1666
by: sheldonlg | last post by:
I am looking for a clean solution to a problem that I solved in, what I call, a "dirty" way. Here is what I want to do. I have a dropdown list. Clicking on an item in the dropdown list invokes...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.