Testing iframe embedding locally RRS feed

  • Question

  • I am new to this so bare with me :)

    I am making a site using dreamweaver CS5.5, and I want to embed an HDView panorama I made with the Photoshop plugin (the panorama page works fine locally)

    I have read the procedure to embed the iframe instruction on the HDViw site page, I inserted the iframe instruction in my Div and when I test the page I do get the HDView viewer box, but I get the error

    "cannot access the XML file using a 'file' URL when the HTML page is accessed using a 'http URL"

    Of course because I am testing the site locally, I have put in the iframe the local path to the xml file. iframe instruction below:

    <iframe style='width: 800px; height: 600px; margin: 0' frameborder='0' scrolling='no' src='http://research.microsoft.com/en-us/um/redmond/groups/IVM/HDViewSL/HDIFrame.htm?FileName=C:\users\username\documents\site\Images\Salon-Pano\Salon-Pano_hdv.xml&Viewer=1'>

    in the Salon-Pano folder I have the following files:

    Salon-Pano_files folder with the image set






    So I have 3 questions

    1) Is there a different syntax for the iframe that would allow me to test the web page with the embedded instruction locally

    2) Am I supposed to use the Salon-Pano.xml or the Salon-Pano_hdv.xml in the iframe

    3) When I am ready to upload to the server, do I need to put the full site URL of the xml file in the iframe, or can I use a local relative path on the server like Images\Salon-Pano\Salon-Pano_hdv.xml

    Thank you very much for any clarification you can offer

     Edit: I tried doing an Iframe with the Hdview web page generated by ICE or PS as the source, but then I run into an IE problem,where IE does not display local content. It does work with Firefox though.

    This brings me to a 4th question:

    4) Is there a reason why we should use the http://research.microsoft.com/en-us/um/redmond/groups/IVM/HDViewSL/HDIFrame.htm?FileName=xxx as the source rather that simply use the HDView htm page created by ICE or the PS plugin ?

    Friday, July 1, 2011 10:49 PM

All replies

  • 1) HDViewSL/Silverlight (Viewer=1) won't allow you to mix file: and http: URLs.  So for testing just copy http://research.microsoft.com/en-us/um/redmond/groups/IVM/HDViewSL/HDIFrame.htm to your local drive.  Or use HDView (Viewer=0) which doesn't have that restriction.

    2) Use Salon-Pano_hdv.xml for HDView or HDViewSL, Salon-Pano.xml for DeepZoom.

    3) The FileName property in the iframe can be a relative path (but using / not \ if a URL).

    4) HDIFrame.htm lets you embed an iframe in your web page; HDView.htm is a web page.  If you have a web server you can just put HDView.htm on it; if not, you can reference http://research.microsoft.com/en-us/um/redmond/groups/IVM/HDViewSL/HDIFrame.htm from your blog.



    Monday, July 11, 2011 6:44 PM
  • Thanks a lot for the clarifications !

    for 1) IE still refuses to display local content though so I guess there is no way to test locally in IE, have to use Firefox preview...


    Monday, July 11, 2011 9:37 PM
  • In IE try Internet Options->Advanced, scroll down to Security and check "Allow active content to run in files on My Computer".
    Monday, July 11, 2011 10:39 PM
  • that enables local js content to work without getting the "enable blocked content" message, but not the iframe  to display a local HDview web page. I still get a black iframe, no error or warnings, just nothing. If I preview in firefox, the HDView content is there and works fine.

    From what I have read it seems to be a known problem with IE Iframes and local content, but I would be happy to find a workaround.


    Monday, July 11, 2011 10:50 PM