XML URL Using the path problem

  • I know, in the KRpano XML file, you can use the call method to read a file path. But whether you can use http:// address read a file, such as:
    <include url="%FIRSTXML%/test_skin.xml"/> ---------------------><include url="http://www.xxx.com/xxx/test_skin.xml"/>

    url="floorplan/map_panogroup13.jpg"
    --------------------->
    url="http://www.xxx.com/floorplan/map_panogroup13.jpg"
    Thank you

  • Hi,

    do you mean you want to include a xml file from an external domain?

    If yes - there are Flashplayer and HTML5 cross-domain restrictions to consider.

    For Flash create a 'crossdomain.xml' with the following content in the root folder of the other server:

    XML
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="*" /> 
    </cross-domain-policy>

    For HTML5 the CORS header would need to be sent from the other server, if the server is an Apache web server, create a '.htaccess' file with the following content on the other server:

    Code
    Header set Access-Control-Allow-Origin *

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!