[ 3 posts ]

artem v.

  • Username: artemv
  • Joined: Mon Aug 08, 2011 3:54 pm
  • Posts: 3
  • Offline
  • Profile

crossdomain.xml is not being retrieved form where it should.

Post Posted: Mon Aug 08, 2011 4:27 pm
+0-
hi everybody,

Would be great if could help me w/ the problem w/ crossdoman support.

Doing this code:
// Initialize Flash transport.
YAHOO.util.Connect.transport('/connection.swf');


connection.swf is under webapp root, crossdomain.xml there as well.

In firebug next call shows that crossdmain.xml is not loaded from where it's supposed:
GET http://:/crossdomain.xml

Host and port had gone. What it could be?

Thanks in advance.

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: crossdomain.xml is not being retrieved form where it sho

Post Posted: Mon Aug 08, 2011 11:33 pm
+0-
Hello artem.

Did you give a look at the Cross-Domain Transactions with Connection Manager example [1]?

I think it would be better using a relative path.

Hope that helps,
IceBox

[1] http://developer.yahoo.com/yui/examples ... n/xdr.html

P.S.: The path of the swf is relative to the HTML.

artem v.

  • Username: artemv
  • Joined: Mon Aug 08, 2011 3:54 pm
  • Posts: 3
  • Offline
  • Profile

Re: crossdomain.xml is not being retrieved form where it sho

Post Posted: Tue Aug 09, 2011 3:44 am
+0-
Resolved!

The problem was on the server side, I was sending to UI the wrong callbackUrl(the one which supposed to be used as an url in YAHOO.util.Connect.asyncRequest function), starting
with http://://localhost:7011/path - that's why I've got http://:/crossdomain.xml.

Anyway, thanks Alberto for quick reply.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum