You are not logged in.

vincen

Trainee

  • "vincen" started this thread

Posts: 69

Location: Grenoble, France

Occupation: Photo, ski, walk, outdoor activities

  • Send private message

1

Monday, June 27th 2011, 10:37am

JS on one server, XML and tiles on an other server ?

Hi,

I encounter a strange problem. Let me explain configuration. I use Wordpress with Panopress plugin to embed KRPano panoramas in wordpress posts.
iphone.js embedded with licence and KRpano.swf with embedded licence on wordpress server. XML and tiles on an other server.
When I use the flash version on a computer it works fine (I had to add a crossdomain.xml file on the server htat host xml and tiles).
When I try to see panos on iPad, I get a fatal error ! My xml is fine because if I move xml and tiles on same server as wordpress it works fine !

Any ideas ? should I change something in the cross-domain file ? but found nothing specific for JS Files !

Thanks for your help,

Vincèn
http://www.skivr.com (my blog)
http://magasin.skivr.com (my online shop for all panoramas and photography stuffs)

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, June 27th 2011, 11:25am

See
XML parsing error check list
In a nutshell you are out of luck. Use an iframe instead.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

vincen

Trainee

  • "vincen" started this thread

Posts: 69

Location: Grenoble, France

Occupation: Photo, ski, walk, outdoor activities

  • Send private message

3

Monday, June 27th 2011, 11:33am

See
XML parsing error check list
In a nutshell you are out of luck. Use an iframe instead.

As I indicated in my original post that exact same xml file works if I put in on same host than js files ! I have seen with your link that cross-domain doesn't work with JS, it sucks :(

Thanks for your help,

Vincèn
http://www.skivr.com (my blog)
http://magasin.skivr.com (my online shop for all panoramas and photography stuffs)

vincen

Trainee

  • "vincen" started this thread

Posts: 69

Location: Grenoble, France

Occupation: Photo, ski, walk, outdoor activities

  • Send private message

4

Tuesday, June 28th 2011, 11:03am

Any ideas how I can do that ? Or is it a limitation of KRPano JS ?

Thanks,

Vincèn
http://www.skivr.com (my blog)
http://magasin.skivr.com (my online shop for all panoramas and photography stuffs)

5

Saturday, July 2nd 2011, 12:56pm

Hi,

cross-domain loading in Javascript isn't possible,

best regards,
Klaus

Sam Rohn

Trainee

Posts: 109

Location: Brooklyn, New York

Occupation: 360° VR Photographer

  • Send private message

6

Monday, July 11th 2011, 8:28am

workaround ?

i have maybe figured out a workaround for this issue, see this post on the panopress forum

http://www.panopress.org/forum/discussio…er-instructions

basically you host wordpress, krpano swf, iphone js & xml on one server, and image files on another server, trick is to specify full absolute paths to remote images in xml

works fine for remote html5 images, needs crossdomain.xml on remote image host for flash images

see the link above for a working example and details

sam
Sam Rohn :: 360° Panoramic Photography :: Location Scout :: New York City :: www.samrohn.com

PanoPress :: WordPress Plugin for 360° Panoramas in Flash & HTML5 :: www.panopress.org

This post has been edited 1 times, last edit by "Sam Rohn" (Jul 14th 2011, 4:34am)


Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

7

Monday, July 11th 2011, 5:46pm

Interesting... I thought %swfpath% was supposed to resolve this in this way. Thats how facebook embedding works without absolutes, though it doesn't support html5, similar embedding fails for idevices with said fatal error.
Time for some tests.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Sam Rohn

Trainee

Posts: 109

Location: Brooklyn, New York

Occupation: 360° VR Photographer

  • Send private message

8

Tuesday, July 12th 2011, 2:51am

if i am understanding things properly, js cannot load files from another server/domain, but it can load a local xml file which can load files from another server/domain

%SWFPATH% did not work w js html5 panos last time i tried it, maybe it has been updated since, i have used %BASEDIR% to resolve some js issues with panotour pro & panopress, but we need a separate path to the remote server here, which does not in this case host any swf, xml or js files, so we would maybe need a new placeholder variable in xml i think, %URLPATH% or somesuch and a way to define this path in xml as well, like

urlpath="http://my-remote-server.com/path/"

this should be separate from %BASEDIR%, as using that for remote image paths might confuse local file paths ?

sam
Sam Rohn :: 360° Panoramic Photography :: Location Scout :: New York City :: www.samrohn.com

PanoPress :: WordPress Plugin for 360° Panoramas in Flash & HTML5 :: www.panopress.org

This post has been edited 2 times, last edit by "Sam Rohn" (Jul 12th 2011, 3:26am)


vincen

Trainee

  • "vincen" started this thread

Posts: 69

Location: Grenoble, France

Occupation: Photo, ski, walk, outdoor activities

  • Send private message

9

Wednesday, July 13th 2011, 9:51am

You are the best Sam :) Works perfect that way :) so to make it short:

-> upload krpano.swf and krpano.js in a directory on same server as wp, and setup it in settings of Panopress plugins
-> upload the xml on same server as wp, and update in it all url to point to other server where your tiles are hosted
-> upload your tiles on your other server
-> indicate in wp post url of xml and that's it :) works both on Flash and HTML5 devices :)

Thanks for all your support Sam and Omer :)

Vincèn
http://www.skivr.com (my blog)
http://magasin.skivr.com (my online shop for all panoramas and photography stuffs)