Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

1

Dienstag, 8. Juni 2010, 18:46

"xml parser error!" with iPhone

Hi all,

and thanks Klaus for the iPhone version!!

I ran to problems with iPhone with the following URL:
http://panoraamakuvat.fi/aula_test

it gives me xml parse error:

Zitat

http://s3.panoraamakuvat.fi/asiakkaat/aulacafe_20100604_iphone.xml - xml parser error!


XML is valid(?) and it gives the error only when testing with Safari & user agent set to iPhone.

It works like a charm locally but not when I set it up to my production environment. That is a panoraamakuvat.fi domain (where the .html lies) with a s3 subdomain with the flash & images.

Any ideas? The thing works ok locally.

Thanks!

2

Dienstag, 8. Juni 2010, 19:52

Have you gotten it to work with scenes before now?

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

3

Donnerstag, 10. Juni 2010, 14:21

The .xml has <mobile> tags before the scenes. So it should show the mobile version when browsing with iPhone/iPad/Safari and skip the scenes. And normal browser shows only the scenes and skips the mobile-tags.

The same .xml works when ran locally.

4

Donnerstag, 10. Juni 2010, 14:59

Hi,

the cross domain access to the xml file seems to be the problem (the xml parser error is wrong in this case),
in krpanoJS I use the Javascript XMLHttpRequest function to load the xml files, but with this function loading from other domains is not possible due security restrictions,
I'm not sure if there is a usable workaround possible yet but I will have a look for one...

best regards,
Klaus

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

5

Freitag, 27. August 2010, 08:46

Hi,

have you tried cross-domain requests with YQL? There's a short article with YQL & jQuery..

http://james.padolsey.com/javascript/cro…ts-with-jquery/

Hi,
in krpanoJS I use the Javascript XMLHttpRequest function

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

6

Montag, 22. November 2010, 11:20

"Solved" this with .htaccess using Apache's Proxy method :-D

7

Mittwoch, 2. Februar 2011, 11:27

"Solved" this with .htaccess using Apache's Proxy method :-D
hi joekki, would you be able to provide some details on how you did this?

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

8

Freitag, 4. Februar 2011, 09:16

Hi,

of course:

Make a .htaccess file to the folder you have locally:

Quellcode

1
2
3
4
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} $ [NC]
RewriteRule (.*) http://destination_domain/folder/$1 [P]


Then it will pass thru all the traffic from your another domain. Note that it will use your server's bandwidth.

More info:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

joekki

Schüler

  • »joekki« ist der Autor dieses Themas

Beiträge: 78

Wohnort: Turku, Finland

Beruf: Panoramic photographer and web site builder

  • Nachricht senden

9

Freitag, 4. Februar 2011, 09:34

I read your post here

loading XML from another domain

I'm using Amazon S3 as my CDN and it's working fine with my shared hosting place. The .htaccess file is enough - no need to configure apache etc. It is not the perfect option because of the lack of benefit with CDN (all data will move though your shared host). You can make it work with different sub domains by altering the RewriteCond and RewriteRule.

Ähnliche Themen