cross-domain

jsonp issue when it runs out of visual studio (on server)

I am having issues using jsonp to do some cross domain ajax calls. It is pretty basic code that works in visual studio but once I deploy it on our staging server I get some odd behavior. Data from httpfox: From visual studio the query string looks like this callback jsonp1280451715954 _ 1280451717305 x "Testing" With ...

CouchDB cross-domain access from XMLHttpRequest?

Currently, web application need to offer some kind of cross-domain HTTP header to access data on other domain: http://openfontlibrary.org/wiki/Web_Font_linking_and_Cross-Origin_Resource_Sharing Is there any way to configure CouchDB to support unlimited cross-domain access? (it may use apache httpd internally) I'm using the db in-house p...

Code review: Cross site scripting DOM load event, could this be cleaner?

Source on Github: http://github.com/tschellenbach/Fashiolista-Button/blob/master/buttons.js Blog post explaining the code http://www.mellowmorning.com/2010/08/03/creating-your-own-diggfacebook-liketweetmeme-button/ The current dom load version is rather verbose. I need the domload event because the code detects all a[href] elements i...

Javascript widget (similar to Facebook Like) script vs Iframe approach

When building a social bookmarking button widget for usage in other websites there are a few challenges. We just recently opensourced the clientside aspects of this. (blog post here: http://www.mellowmorning.com/2010/08/03/creating-your-own-diggfacebook-liketweetmeme-button/) Basically the goal is to replace the chosen elements love it ...

One site, multiple domains, better SEO

I have my personal website running on my main domain like myname.net I want to buy some domains that have great keywords to me, like: professionalrj.net and freelancebrasil.net (just examples). I don't want to redirect these new domains using 301 since I want to "score" with the keywords relevancy. I know that I can use canonical meta...

The 1x1 pixel image

Hi, I see many web analytics application and otherwise use javascript to capture data on a client website, and then send it to a central server for processing/storage/presentation. For a similar purpose I've been using a javascript snippet which generate a 1x1 pixel image request to the server. The request contains GET attributes with ...

XDomainRequest object caching/asynchronous call issue.

I have an aspx page on which I am using XDomainRequest object to populate two div(s) with html returned from AJAX response. I have used Jquery to get the divs and perform "each()" on the retrieved List var divs = $("div"); divs.each(function (index) { if (window.XDomainRequest) { xdr = new XDomainRequest(); ...

problem using HTML5 for Cross-origin resource sharing

Hi, I am new to this site and had been successfully using the "HTML5" Cross-origin resource sharing (CORS) to POST data to my server. I just recently tried to include GETs in that as we are trying to have all of our communications be non-reliant on a JavaScript library. In doing so I have run into an odd issue that seems somewhat fixable...

How to reload http window.opener from https popup?

I have an http window which opens a secure popup to submit a form to a third party web site. After the popup is closed, I would like to reload the opener so that it reflects the results of the form submission. Since the opener and the popup use different protocols (http and https), I can't do it in the straightforward way (window.opener...

Same origin policy violated?

Heh, I'm using jQuery AJAX Call to pull data from a self hosted webservice (same domain), but it always return 0, which indicates a cross domain problem. But this shouldn't be a problem. Any suggestions how to fix this? Thanks! Website running my Script http://www.mysite.com/facebook/el_login My AJAX Call: var data = 'username='...

Cross-domain website promotion

I'd like to offer a way to my users to promote my website, blog etc. on their website. I can make a banner, logo whatever that they can embed to their site, but I'd like to offer dynamic content, like "the 5 newest entry's title from my blog". The problem is the same origin policy. I know there is a solution (and I use it): they embed a...

Cross-site javascript problem

Hi, I'm developing a JavaScript API service. Main html page looks like this: <html> <head> <script type="text/javascript" src="scripts/logic.js"></script> <script type="text/javascript" src="scripts/jquery-1..."></script> <script type="text/javascript" src="http://mydomain/api/main.js"&gt;&lt;/script&gt; </head> ... </html> In t...

Is it possible to host the clientaccesspolicy.xml file with the ASP.NET Development Server?

I have a solution with two service projects (one is hosting a unit test silverlight application and other is providing the services being tested). Because of cross-domain policy, I have to publish the primary service site to IIS before the unit test site can consume a service. Is it possible to host the clientaccesspolicy.xml file on A...

imitate iframe coming from another domain

Hi all, I am trying to develop a small web application which will consist of one web applicaiton using an iframe from another domain. I am trying to test this on my local machine, and for this I need to imitate as if the iframe is coming from another domain (while it's actually on the same domin as the other web application - my compute...

Cross domain iframes and cookies

Hello all, I'm developing a web application using asp.net. In my application I require the user to plent an iframe which refers to an html document on my domain. I also give the user a script to put in his window which performs a call to my .ashx handler. What I would like to do is as following: The iframe in my domain needs to store...

Cross domain application integration?

My company has a Java webapp that contains a product catalog feature. We are looking for a way to integrate the catalog into other sites in a way that no server side code would need to be written(on the external sites). I'm just looking for suggestions for ways that one might go about doing something like this... ? ...

JQuery ajax cross domain

Hi guys, I am fed up with this problem. Here is two pages, test.php and servertest.php. test.php <script src="scripts/jq.js" type="text/javascript"></script> <script> $(function(){ $.ajax({url:"testserver.php", success:function(){ alert("Success"); }, error:function(){ alert("Error"); }, dataTyp...

Making crossdomain ajax requests with addons for Firefox

I'm a bit confused about how you can or cannot make crossdomain ajax requests in addons for Firefox. Addons such as LastPass and Xmarks suggest you can do it, however when I try to google how you do it, everyone seem to say you cannot, unless the user has set a preference in the settings of Firefox. If crossdomain isn't possible, then ho...

Cross domain script tag working in FF and Chrome but not IE

We are providing a snippit of HTML that our client can embed on their website to make a callback to our API. This HTML is a simple form and a Javascript file hosted on our server. This is what the client hosts on their website (clientsite.com): <script type="text/javascript" src="http://mysite.com/webcallback/callback_script.js"&gt;&l...

Safe implementation of script tag hack to do XSS?

Like a lot of developers, I want to make JavaScript served up by Server "A" talk to a web service on Server "B" but am stymied by the current incarnation of same origin policy. The most secure means of overcoming this (that I can find) is a server script that sits on Server "A" and acts as a proxy between it and "B". But if I want to dep...