You are not logged in.

joekki

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

1

Tuesday, June 8th 2010, 6:46pm

"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:

Quoted

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

Tuesday, June 8th 2010, 7:52pm

Have you gotten it to work with scenes before now?

joekki

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

3

Thursday, June 10th 2010, 2:21pm

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

Thursday, June 10th 2010, 2:59pm

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

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

5

Friday, August 27th 2010, 8:46am

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

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

6

Monday, November 22nd 2010, 11:20am

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

7

Wednesday, February 2nd 2011, 11:27am

"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

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

8

Friday, February 4th 2011, 9:16am

Hi,

of course:

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

Source code

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

Trainee

  • "joekki" started this thread

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

9

Friday, February 4th 2011, 9:34am

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.

Similar threads