Sie sind nicht angemeldet.

vincen

Schüler

  • »vincen« ist der Autor dieses Themas

Beiträge: 69

Wohnort: Grenoble, France

Beruf: Photo, ski, walk, outdoor activities

  • Nachricht senden

1

Montag, 27. Juni 2011, 10:37

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)

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Montag, 27. Juni 2011, 11:25

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

Schüler

  • »vincen« ist der Autor dieses Themas

Beiträge: 69

Wohnort: Grenoble, France

Beruf: Photo, ski, walk, outdoor activities

  • Nachricht senden

3

Montag, 27. Juni 2011, 11:33

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

Schüler

  • »vincen« ist der Autor dieses Themas

Beiträge: 69

Wohnort: Grenoble, France

Beruf: Photo, ski, walk, outdoor activities

  • Nachricht senden

4

Dienstag, 28. Juni 2011, 11:03

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

Samstag, 2. Juli 2011, 12:56

Hi,

cross-domain loading in Javascript isn't possible,

best regards,
Klaus

Sam Rohn

Schüler

Beiträge: 110

Wohnort: Brooklyn, New York

Beruf: 360° VR Photographer

  • Nachricht senden

6

Montag, 11. Juli 2011, 08:28

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Sam Rohn« (14. Juli 2011, 04:34)


Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

7

Montag, 11. Juli 2011, 17:46

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

Schüler

Beiträge: 110

Wohnort: Brooklyn, New York

Beruf: 360° VR Photographer

  • Nachricht senden

8

Dienstag, 12. Juli 2011, 02:51

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

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Sam Rohn« (12. Juli 2011, 03:26)


vincen

Schüler

  • »vincen« ist der Autor dieses Themas

Beiträge: 69

Wohnort: Grenoble, France

Beruf: Photo, ski, walk, outdoor activities

  • Nachricht senden

9

Mittwoch, 13. Juli 2011, 09:51

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)