cross-domain

Retrieve a cross domain RSS(xml) through Javascript

I have seen server side proxy workarounds for retrieving rss (xmls) from cross-domains. In fact this very question addressess my same problem but gives out a different solution. I have a constraint of do not use a proxy to retrieve rss feeds. And hence the Google AJAX Feed API solution also goes out of picture. Is there a client-only wo...

jQuery "getJSON" from an external domain that doesn't support JSON-P output.

Hello, I'm trying to grab data from a JSON on an external site but the site doesn't support JSON-P output. This is an example of non-working code, but gives a good idea of what I'm trying to achieve: $.getJSON("http://www.bom.gov.au/fwo/IDV60901/IDV60901.94868.json", function(data){ //Process data here }); Are there ways around t...

The proper way to handle popup closing

I'm looking for close event for popup. I've found one for XUL, but I need it for HTML. Popup has closed property. >>> var popup = open('http://example.com/', 'popup', 'height=400,width=500'); >>> popup.closed false Well, I can check it once at half second. function open_popup() { var popup = open('http://example.com/', 'popup', 'h...

[AS2] sendAndLoad, cross domain & mochi ads preloader

In my flash game I use sendAndLoad to send information about the game played back to my server for for a high scoreboard. I have recently started using MochiAds meaning that it my swf is hosted on another domain to where the PHP script resides. If I use version control with the automatic preloader the sendAndLoad function just never se...

asp:MediaPlayer (Silverlight) Https / http issue

Hi, we have a site (https://oursite.net) in which we display a videostream hosted on http (http://someserver.com). The site needs to be hosted on https, and we don't control the video, so I'm assuming it needs to be on http. we recently added the option to play the stream through the silverlight asp:MediaElement, which works perfectly fi...

Loading cross domain XML with Javascript using a hybrid iframe-proxy/xsl/jsonp concept?

On our site www.foo.com we want to download and use http://feeds.foo.com/feed.xml with Javascript. We'll obviously use Access-Control but for browsers that don't support it we are considering the following as a fallback: On www.foo.com, we set document.domain, provide a callback function and load the feed into a (hidden) iframe: docume...

protect swf from being loaded by another website

Is there any "client side only" way to protect a SWF so it'd only be possible to load it from domain X? I'm aware of the server side options such as checking the referrer but unfortunately my server is a "static" CDN where this implementation isn't possible. I wonder why flash cross-domain security files do not seem to handle this sce...

is JsonP working with Opera, Chrome & Safari ?

Hi, On a web site that I am building , when you log in (because the database is on an other server), I use json padding to check if the user as the right credentials. It's working flawlessly (ie7,ie8 & FF), until I tried it on chrome, safari & opera where it's a complete disaster. $.ajax({ type: "GET", dataType: "jsonp", u...

Determine if an iframe is visible on the screen

Hello! I have an iframe that is being loaded into external sites of which I cannot put any code in. What I would like to be able to determine from within my iframe (different domain) is if the iframe is currently within the 'viewport' of the browser (or if it is scrolled off the page). Is there any way for this to be done? As I do not ...

ScriptResource.axd Access is denied. Cross-Domain iFrame

We have a web page containing an iframe containing a page sharing an authentification cookie with it's parent page. For example the iframe page is on the domain foo.domain.com and the page containing the iframe is on foo2.domain.com. Both share a cookie from domain.com. Authentification works great, but the problem is with ASP.NET in ...

I've got a bunch of url aliases can I just say *.example.com in my crossdomain.xml file and have it work?

Here's my current crossdomain.xml: <cross-domain-policy> <allow-access-from domain="www.example.com" /> <allow-access-from domain="example.com" /> <allow-access-from domain="example-alias.com.com" /> <allow-access-from domain="www.example-alias..com" /> <allow-access-from domain="otherexample.com" /> </cross-domain-policy...

What is the best way to find out that access to the parent window has restrictions due to the same origin policy?

My current solution: function isAccessToWindowRestricted(w) { try { return !w.location.href; } catch (e) { return true; } } Any better ideas? Is there a 'legal' way without try-catch? ...

How can I load a remote document into an IFRAME in Internet Explorer? (IE6, IE7, IE8)

I posted a question the other day about why IE8 would not allow me to embed a page using the OBJECT tag. Per that discussion, and per my other research, I decided to just go with an IFRAME as it was not clear that the third-party application actually needed to be in an OBJECT. Now here I am, a day later, finding out that IE8 has the sam...

What policy is enforced by an "empty" crossdomain.xml ?

What policy would be enforced by the following crossdomain.xml that contains no allow statements. <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> </cross-domain-policy> Does this implicitly deny or accept everything? ...

Cross origin XHR form user script in Google chrome

Has anybody had any luck performing cross origin XHRs from a user script in Google Chrome? The requests go through to the server (I cann see them in the logs) but, the readystatechanged event is never fired. Extension permissions don't seem to be doing the trick. Neither is jsonp. ...

Can I use PHP to grab external XML file for use by JQuery?

I am trying to load Google custom XML search results into a PHP page and then manipulate the XML using JQuery. I understand that I can't use javascript to grab the XML file as it's on an external domain but can I use PHP to grab the XML from the server and then make it available to JQuery as an XML file, or other DOM structure, so I ca...

Cross domain asynchronous multipart POST file uploads using flXHR?

I am building a "widget" that can be embedded in other people's websites, that talk back to my server. Right now I am using flXHR for the cross domain asynchronous communication, and it works fine for doing GETs inside the widget. However the major point of the widget is to allow clients to submit a form back to my server, complete wit...

Cross-Domain iframe communication

I have an iframe being created on a page, and the page's domain is being explicitly set to 'xyz.com' but the iframe's domain is defaulting to 'dev.xyz.com', which is the actual domain i'm developing for. The problem is, when I try to access that iframe via iframe.contentWindow.document, it fails due to the difference in domain. I've tr...

Ajax cross domain question

Hi Everyone, In the code there are two methods, 1st method should read the text from the same domain that is example.com, and the 2nd function should read the text from different domain that Google.com/example.txt. Could any please let me know who to do this. I'm not sure whether I have framed the question properly. Please ask me if you...

Passing data between HTTPS and HTTP

I've recently faced a problem involving passing data (small amount), from a page to an iframe. It was simple when both pages were http - i've used query string to pass information to the iframe and javascript to signal the parent page of process completion. When iframe location was changed to https, there was a problem accessing the pa...