473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2234
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
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
21
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
9
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...

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.