Space character in xml coding makes problems with iPhone/iPad

  • Just notice that if I use this coding for example (pay attention to SPACES):
    ...limitview="auto" fov="41"/>
    or
    ...limitview="auto"fov="41" />
    does not work.

    This works well...
    ...limitview="auto" fov="41" />

    Notice it only on iPad/iPhone, desktop is not affected by this.
    the krpano version is the latest, (1.0.8.14 - 29/sept/2011) but the same problem with the previous version.
    It's not really a bug, my question is:
    do we have to pay attention to "space" character in coding for krpanoJS?

    Toni

    Hope is not a very stupid thread... *unsure*

  • Hi,

    This works well...
    ...limitview="auto" fov="41" />

    right, this is the only valid xml syntax for this case (but I think the first case should also work in the most browsers...)

    it is like that:
    the krpano Flash viewer uses the XML parser that the Flashplayer provides,
    and the krpanoJS viewer uses the XML parser that the browser provides,
    and the XML parsers of the browsers are much more strict and accurate than the one from the Flashplayer,

    so it is necessary to have a valid xml file,
    you can test a xml file anytime by opening it directly in the browser,

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!