You are not logged in.

floz

Trainee

  • "floz" started this thread

Posts: 109

Location: Uppsala, Sweden

  • Send private message

1

Tuesday, July 6th 2010, 11:39pm

iPhone / iPad script problem

Hi there,

I just purchased an iPhone license and am trying to get the panoramas on my site ready for iPhone / iPad usage.

However, I get a (rather generic) "xml parser error!. The XML files works fine in the flash viewer, though, and also validate alright with various online services. I've also tried to strip out anything that is not necessary in the XML file, but I still don't know what produces the error.

Can anyone help me?

The web address is http://www.pano.ie/panoramas/misc/belfast_city_hall (if you don't have an iPad, please open it with your browser set with the appropriate iPad User Agent !) and the xml file is http://www.pano.ie/files/misc/belfast_ci…t_city_hall.xml

Thanks so much!

2

Wednesday, July 7th 2010, 2:49am

It works great on my iPhone. In fact, you did such a great job with the page, it doesn't even look like the krpano iPhone viewer. How did you create the upper bars, the bottom bar and then get it to autorotate? I don't see the little dot associated with the current krpano release either. Are you sure you are using the krpano iPhone viewer? The XML page you list does not have the krpano tags and seems to be scripted a bit differently too. Maybe it is just my lack of understanding but it does not seem like it is the iPhone krpano viewer.

This post has been edited 1 times, last edit by "Jarredja" (Jul 7th 2010, 3:11am)


Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

3

Wednesday, July 7th 2010, 9:39am

I don't have an iphone, but like to point out something :P The links to the streetvew and google maps, could you make them target="_blank" so they open in a new page instead of the current (or use shadowbox/lightbox). I like your website :)
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

floz

Trainee

  • "floz" started this thread

Posts: 109

Location: Uppsala, Sweden

  • Send private message

4

Wednesday, July 7th 2010, 12:49pm

@ Jarredja -- that's because it's not krpano's viewer, but the free one from the guys over at 360cities.net. I'm using this temporarily, but would like to switch to the krpano one. Try accessing things with Safari and iPad user agent and you'll see the problem

@ Zephyr -- thanks for the compliment, but as for the target of th links, this is intentional. target="_blank" is generally considered bad practice on the internets ...

So anyone (Klaus?) got any ideas why things are not working for me / iPads ? Thanks!

floz

Trainee

  • "floz" started this thread

Posts: 109

Location: Uppsala, Sweden

  • Send private message

5

Wednesday, July 7th 2010, 5:06pm

Ok, this is weird. I've have solved my problem.

First, my webserver was compressing the xml file before sending it out. This apparently breaks the javascript which parses it. Not sure if this is fixable, but for now I've excluded xml files from compression.

So then, the xml file was read correctly -- but nothing showed up. After trying virtually everything, I discovered putting a DOCTYPE declaration breaks the javascript viewer (any one will do) at the top of the html document (this even happens with the untouched one created by the krpanotools)!

Klaus, this one should definitely be fixed though . . .

floz

Trainee

  • "floz" started this thread

Posts: 109

Location: Uppsala, Sweden

  • Send private message

6

Wednesday, July 7th 2010, 8:08pm

Ok, another update. It seems that the javascript is a) expecting a file served with mime type "text/xml" from the server, and b) if it is UTF-8, it must not have the BOM at the front.

I'm sure, to make things more flexible, both restrictions should be removed if possible! Thanks for any feedback on this!

7

Tuesday, July 13th 2010, 4:58pm

Hi,

thanks for the notes!
for XML loading and first parsing I'm only using the standard Javascript "XMLHttpRequest" way,
but I will try to find out more and see if that can be fixed...

best regards,
Klaus

8

Friday, September 17th 2010, 12:21pm

hmm I´m having a similar problem with this pano:


http://www.panograf.at/files/360/mobile-…0/mobile/53.xml

pano works great on pc but doesn´t show up on iPhone. With user agent "iphone" it shows me the xml parser error.
but the same xml is working fine when navigating to it on iphone with this url:

http://panograf-at.hosting.vol.at/Feldki…/mobile/53.html

but would like to use the first solution.

regards,
marc

This post has been edited 1 times, last edit by "MarcW." (Sep 20th 2010, 9:47am)


9

Monday, September 20th 2010, 2:20pm

Hi,

any mime type problem on xml loading should be fixed in the next release,
also the any DOMTYPE problems,

but - I'm not sure about the cross domain loading problem, I think there is no real solution for that... (without a kind of server proxy), that's the browsers security design...

best regards,
Klaus

10

Tuesday, September 28th 2010, 1:50am

Hi Klaus,

At your previous post, did you mean DOCTYPE problem, or DOMTYPE problem? Cause got the same problem with the DOCTYPE declaration as floz. Our current system is using XHTML1 strict and the krpano doesn't work with it. *sad*

Another problem is when i tried to set the url of pano images located on another domain, e.g:
<left url="http://image01.uta.surroundpix.com.au/agents/1046/property/330158/images/living_01_rsb.jpg" />
The url are then concatenate with the current url : "http://mobile.development.surroundpix.com.au/http://image01.uta.surroundpix.com.au/agents/1046/property/330158/images/living_01_rsb.jpg" *blink* , which returned an error. When I tried to use "basedir" attribute of the krpano XML object to set the original path to images as an alternative, turned out the "basedir" attribute doesn't work either. *wacko*

Finally, I think the current krpano is conflicting with moo-tools library, must have some functions override *confused* . Is there any future plan to fix this?
Thanks first for any feedback on this!

PS: When will be the date for next release?

Best regard,
hgdien

11

Friday, October 1st 2010, 8:38am

Hi,

yes, that will be all fixed with the next release,
the current version is simply very basic...

all the things that you have addressed (doctype, absolute url, basedir) are already fixed,
the new version is near finish, but some things are still to do,

best regards,
Klaus