Ticket #75 (assigned task)

Opened 3 years ago

Last modified 1 year ago

document crossdomain.xml

Reported by: mikel Assigned to: mikel (accepted)
Priority: major Milestone:
Component: document Version:
Keywords: Cc:

Description

So, I think I see what's going on, and there is a potential solution. worldkit.swf assumes that the rest of the install is located in the same directory as the html file embedding worldkit.swf. So for your example on the PC server, the worldkit.swf is looking on that same server for config.xml and doesn't find it.

[actually, if there was a config.xml on the PC, it wouldn't be able to access it because of flash domain security policy. by default the swf only has access to files on the server it originates from. there are ways around that: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213 ]

The solution is to explicitly tell that worldkit.swf where the config.xml file is. The manual mentions how to do this at http://brainoff.com/worldkit/doc/dynamic.php.

I've put up a demonstration at http://rockburger.com/test.html. It loads confurl from http://brainoff.com/test/config.xml. If you look at that file, you'll see that all files to be requested (zoomifydir, dataurl) are fully listed with domains. Again, that's necessary so that worldkit.swf knows which server to look on.

[ It probably makes sense for worldKit to assume that every other request is relative to the directory and server from which config.xml is served. However, worldKit can not assume that the config.xml is in the same directory as it's located, since that would prevent a single copy of worldkit.swf being used in multiple pages on a single server. Plus, it's actually not possible in actionscrip for worldkit.swf to know where it's served from! ]

Now, I wonder about your app: are you planning for search results (from the PC) be mapped, or will that map always display the same data? If it's displaying search results, that RSS feed will be served from the PC I guess, which then runs into some domain accessibility issues.

Sorry if this is a bit confusing. I've never actually encountered this problem before. Which doesn't mean it's not solveable, but that the process to get it to work hasn't been smoothed out yet.

Mikel

--- Andrew Tobiason <atobiason@wcs.org> wrote:

Mikel, Thanks for your reply, I wasn't very clear in my first message, partly because we have a very unusual arrangement here. We want to use WorldKit? in our Bushmeat IMAP portal - www.bushmeat.org/IMAP. Specifically, we want to use it to georeference bushmeat projects and peer-reviewed research papers, so users can find things spatially in our online 'library.' The best way to understand my request is to go to the page linked above and enter the portal - you'll see that by clicking the ENTER button, you end up at a site outside of the bushmeat.org domain - this is because you have been auto-logged in as a guest to a reference database stored in AND served by Biblioscape software. This server is actually a dedicated Dell PC acting as a server, in our Washington, DC office (see WHY below). The Bushmeat IMAP has three main features - digital library (biblioscape served from our office), Central Africa mapserver (ArcIMS served out of U. Missouri), and World Geodata (right now using the www.timemap.net software but which I intend to switch to WorldKit?; contained on our linux website). The reason the 'homepage' for the imap is on the Dell PC is because the mapserver and geodata pages have links to the digital library, and its better if people are already logged in. I realize this is far from an elegant solution, but we like biblioscape for its cheapness and ease of use to site visitors - even if it is a bit difficult to manage and the programming is not generally customizable! For instance, it is designed to serve out of a Windows PC - a strange thing but not for the academics it is marketed to. Also, it encourages people to go for a hosted solution at $70/month. Now, I was easily able to get WorldKit? running on our linux website (www.bushmeat.org/IMAP/worldkit), and also was able to install it on our Windows PC and view results in Frontpage "preview". However, when I actually try to view the page on the Windows PC server, there is a blank white placeholder (or black if I use the default color #000000) but no map application. Does WorldKit? not work on Windows servers? My preference would be to run WorldKit? from our main website (linux) but have a few lines of code to call it up on the PC server. For example, see on old page on the PC server, with the UNESCO World Heritage Sites code installed: http://68.239.82.2:8001/bw_ref_list_bibOLD.htm . The black box to the right of it is WorldKit? - not working. The UNESCO app suggests that what I want is possible, but I can't seem to replicate it with WorldKit? and am not sure why. If I could get this going, I could install a mini-map viewer/search in the results pages of searches, PLUS our members (WWF, Toronto Zoo, etc.) could include the application on their bushmeat pages too. Thanks for any help you can provide! And again, thank you for creating this wonderful application. I'll be adding georeferenced projects to the page at www.bushmeat.org/IMAP/worldkit in the next few days. Andy PS -

msg48 (view) Author: admin Date: 2005-01-19.16:16:03

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213

Change History

08/14/07 08:58:51 changed by mikel

  • status changed from new to assigned.

the description isn't really applicable, but an issue