473,669 Members | 2,458 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 2278
sh************* @gmail.com wrote in news:1139823895 .923599.313360
@g44g2000cwa.go oglegroups.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.go oglegroups.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****@dslextr eme.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
Good Man wrote:
sh************* @gmail.com wrote in news:1139823895 .923599.313360
@g44g2000cwa.go oglegroups.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****@dslextr eme.com> wrote in message
news:11******* **************@ z14g2000cwz.goo glegroups.com.. .
Good Man wrote:
sh************* @gmail.com wrote in news:1139823895 .923599.313360
@g44g2000cwa.go oglegroups.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.i ndividual.net.. .
On 14 Feb 2006 08:20:26 +0100, "Dag Sunde" <da*@viz.no> wrote:
"Tony" <to****@dslextr eme.com> wrote in message
news:11****** *************** @z14g2000cwz.go oglegroups.com. ..
Good Man wrote:
sh************* @gmail.com wrote in news:1139823895 .923599.313360
@g44g2000cwa.go oglegroups.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.domai n' 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.domai n' 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.resourceind ex.com/Programs_and_Sc ripts/Perl/Content_Retriev al/>
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.domai n' 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.resourceind ex.com/Programs_and_Sc ripts/Perl/Content_Retriev al/> to take any content stealing script of his choice (free or
"commercial ") and enjoy ever after.


news:43******** @news.wineasy.s e
PointedEars
Feb 14 '06 #9
Dag Sunde wrote:
"Tony" <to****@dslextr eme.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
Good Man wrote:
sh************* @gmail.com wrote in news:1139823895 .923599.313360
@g44g2000cwa.go oglegroups.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

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

Similar topics

10
2057
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
21
6131
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
9
1668
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 also has some client side call-backs built in that can update the display via AJAX. To ask a more specific question, do I need a specific AJAX framework to do the following:
31
3114
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 around here? If so, do you know if Ajax.NET can be used without prototype.js? -- "The most convoluted explanation that fits all of the made-up facts is the most likely to be believed by conspiracy theorists. Fitting the
1
1837
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 filter changes you want the gridview to change but nothing else. In particular all you would like to happen is for an ajax call to occur and a new grid view to be returned.
8
1699
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. 3. Or are there others out there. 4. Should i not do AJAX at all because it still posts back the entire page even though only the section is refreshed. (someone tell me i'm wrong here and why please!)
2
2205
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 the form load event. Why should it fire when I put a button in a update panel? Is this necessary and is only the other controls related to the update panel send back? Or the whole page (If this is true I really do not get it). But please answer...
2
1586
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 downloading the stuff at asp.net/ajax.) 3. When will the new version of AJAX be out? Will it be included with the Visual Studio 2008 release?
6
1546
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 getting started: I notice that there are project templates for creating AJAX this and AJAX that. I'm a little confused about this. Am I not able to add AJAX features to an existing Web form? Why is it necessary to select an AJAX form or whatever?
22
1684
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 an AJAX call that gets data which populates the entire lower part of my screen. It does this with an innerHTML for the div tag that holds all of this. This works fine. I also have an "Edit" button that I want to show next to dropdown list,...
0
8465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8588
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8658
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2797
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 we have to send another system
2
2032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1788
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.