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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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 ...
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...
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?
...
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 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?
...
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.
...
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...
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...
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...
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...
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...