cross-domain

Tricky: Surpress "Loading ..." title in Firefox for JSONP polling

I am working on a jQuery plugin that people can include in their own page. The plugin spawns jobs at a service I am operating which is on a different domain. To breach the domain boundary I am using jQuery's JSONP functionality which works fine for spawning the job. However, I also need to display the "progress" (0 -> 100%). So far my p...

Problem calling WCF service through https

Hello, I have recently implemented SSL on a WCF service. I deployed it on a IIS server, which is on another machine of the network (my developer machine doesn't have IIS, so i can't test locally). Whenever i try to call the WCF service, i'm having the error: "CommunicationException... failed... ask for cross-domain policy... which acc...

How can code in a JavaScript file get the file's URL?

I need to dynamically load a CSS stylesheet into a page that's on a different domain. How can I get the complete URL of the JS file to use in the href attribute of the stylesheet? For instance, here is the structure: http://bla.com/js/script.js http://bla.com/css/style.css I want to dynamically load the stylesheet into a page http:...

<iframe> javascript access parent DOM across domains?

I control the content of an iframe which is embedded in a page from another domain. Is there any way for javascript in my iframe to make changes to the parent's DOM? For example, I would like to have my iframed script add a bunch of html elements to the parent DOM. This seems like a pretty tall order - thoughts? Edit: There exists a t...

HTML forms, add data from another domain

Hi I have missed the cross domain waggon, and have just started investigating. My question is: Is it possible add data to the eg. input/@name="x" field in domain-a.com/form.html from domain-b/add.html? As far as I know it is not possible with JavaScript to write to the domain-a's document from a function in domain-b. But I think I h...

How to save an image from one domain onto another

I've just been tasked with abstracting the admin section of a website to its own separate domain on a separate (shared) hosting plan. Part of what the admin section does is upload pictures for products. Now that this admin section is no longer a part of the main domain, how can I upload products onto the main domain from the admin domain...

can someone briefly explain Single sign on? i want to use openid as SSO.

hi, can somebody explain steps i should follow to implement SSO on php based website. e.g user logs in to www.siteA.com and when he goes to www.siteB.com he should be already logged in. (in my case). how siteB would identify user? does user has to enter openid again? ...

CrossDomainError with very libearl client access policy

Is it just me or shouldn't the following client access policy allow anyone to do anything? <?xml version="1.0" encoding="utf-8" ?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*" /> </allow-from> <grant-to> ...

Issue with passing querystring parameters via Http Get to an iframe in IE

Hi, This is a follow up to my previous question: Problem passing parameters via Iframe in IE. Which was never solved. Here's the core of it: I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe s...

IIS6 Virtual Directory 500 Error on Remote Share

We have our servers at the server farm in a domain. Let's call it LIVE. Our developer computers live in a completely separate corporate domain, miles and miles away. Let's call it CORP. We have a large central storage unit (unix) that houses images and other media needed by many webservers in the server farm. The IIS application poo...

Cross domain PHP Sessions

I am building a site which allows a user to point a CNAME record at my site to run their "profiles", this allows your OWN domain name to load your profile on my site. This is raising all sorts of issues related to sessions. I have seen virb do it. I don't see any of the information that is session based in an iFrame... but there IS an...

Silverlight WCF Service Cross Domain Question

I have a silverlight app (hosted at intranet.mydomain.net) and a WCF service at (webservices.mydomain.net) Do I need a cross-site policy file? If so, what would it look like to only allow access from intranet.mydomain.net? ...

Actionscript 2.0 - Load SWF file(s) from different domain(s) and have access to the objects in them.

First off, thank you very much for your time and any help that you can offer. My question is as follows, I have two swf's: MovieA.swf, MovieB.swf MovieA is hosted off of a web server at WebsiteA.com MovieB is hosted off of a web server at WebsiteB.com WebsiteB contains a crossdomain.xml file, which allows access from WebsiteA, and to...

Setting cookie from a JavaScript file on another domain

I have a site on domainA.com. It includes file.js from domainB.com: <script type="text/javascript" src="http://www.domainB.com/file.js"&gt;&lt;/script&gt; In file.js, I want to be able to set a cookie for domainA.com. How would I do this? It must be possible since Google Analytics does it for their __utma, etc. cookies. ...

Cross Domain URL Access from Iframe using Javascript

Hi, I need to access the Parent Domain URL from my Iframe which is in another domain. For example: example.com is my website which is in Iframe of another parent(google.com) domain. Here i need to access the parent domain URL in my example.com. i.e I need to get the URL google.com in my example.com. Parent dom...

Silverlight cross-domain: SecurityException in release mode only

I understand that for Silverlight to be able to make a cross-domain request using the WebClient class, there needs to be a clientaccesspolicy.xml at the root of the server. I got this working, and when the Silverlight app has been compiled in debug mode, this works great. When the Silverlight app is compiled in release mode, however, I g...

clientaccesspolicy.xml file not working...

Hi all... I have a site with a Silverlight-enabled WebSerivce (.svc file). In that app is also a Silverlight application which references this service. Now, our website uses multiple headers (to account for the user coming to it with or without the 'www.' subdomain, e.g. mydomain.com and www.mydomain.com). So i put in a clientaccesspol...

Cross domain popup window with return value

This is the setup: I have two websites on two different domains: www.website1.com www.someotherwebsite.com This is what I want to do: When a user is on www.website1.com and clicks a link, I want a window to popup showing www.someotherwebsite.com. When the user clicks a button in the popup window (showing www.someotherwebsite.com) ...

Silverlight and Flash and Javascript cross domain policies

A slightly nebulous question: This question stems from attempts to consume non-asf streams in Silverlight using MediaStreamSource as a MediaElement source. Cross domain issues here are proving very frustrating. Generally communication between domains is not allowed on the web. If I understand correctly, say malicious site/embedded obj...

How do I stop .htaccess Rewrite redirecting into the html folder?

I'm hosting on MediaTemple. I would like www.rhapsodicmusic.com to redirect to www.rhapsodicmusic.co.uk so that www.rhapsodicmusic.com/anypageordirectory will go to www.rhapsodicmusic.co.uk/anypageordirectory. I have the following code in my .htaccess RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^([^.:]+\.)*rhapsodicmusic\...