I have two domains ( www.example1.com and www.example2.com from
diferent servers )
example2.com have a page with this tag
<script type="text/javascript"
src="http://example1.com/mytest.ashx?proxy">
</script>
If I put the same page on example1.com all work fine. I think that is a
`cross domain` security.
Does Jayrock have a 'cross domain' problem ?
If so, I have a big problem.
Regards,
Alexnaldo Santos
Do you know any workaround for it ? I need to call jayrock rpc from
cross domain
This is not a Jayrock problem. Every browser supports this. You can
always source content from multiple web sites. In this sense, it's not
different than getting a GIF file from another web site than the hosting
page. Where you'll be blocked is if the script tries to contact another
domain than the web site the hosting page was downloaded from.
-----Original Message-----
From: jay...@googlegroups.com [mailto:jay...@googlegroups.com] On
Behalf Of alexnald...@hotmail.com
Sent: Tuesday, October 10, 2006 6:51 PM
To: Jayrock
How I can dynamic download the jayrock scripts ?
By creating SCRIPT elements through the DOM and then appending them to
the body. For example:
var script = document.createElement("SCRIPT")
script.type = "text/javascript";
script.src = "...";
document.body.appendChild(script);
In IE, you can use the onreadystatechange event on the script to find
out when it's finished downloading.
-----Original Message-----
From: jay...@googlegroups.com [mailto:jay...@googlegroups.com] On
Behalf Of alexnald...@hotmail.com
Sent: Tuesday, October 10, 2006 11:23 PM
To: Jayrock
Subject: [Jayrock] Re: Cross domain problem
Here a good link too..
I did it but doesn't work. The Cross Domain problem continue....If I
try the same code in same domain all work fine !
function ensureUploadScriptIsLoaded() {
if (self.sunet_ScritLoaded) { // Already exists
return;
}
var head = document.getElementsByTagName("head")[0];
script = document.createElement('script');
script.id = 'monitorScript';
script.type = 'text/javascript';
script.src = 'http://mysite.com/myhandle.ashx?proxy';
head.appendChild(script);
}
The method I am calling is echo, documented here:
http://www.flickr.com/services/api/flickr.test.echo.html
Hope this helps. As you can see, this isn't a Jayrock topic or issue.
-----Original Message-----
From: jay...@googlegroups.com [mailto:jay...@googlegroups.com] On
Behalf Of alexnald...@hotmail.com
Sent: Wednesday, October 11, 2006 3:36 PM
To: Jayrock
Subject: [Jayrock] Re: Cross domain problem
I changed my code and now work fine !
Thanks,
Alexnaldo Santos
> ------_=_NextPart_001_01C6ED3D.3804D26E
> Content-Type: application/x-zip-compressed
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
> filename="flickrjsontest.zip"
> Content-Description: flickrjsontest.zip
> X-Google-AttachSize: 812