You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Friday, July 14th 2017, 5:39pm

flash textfield no longer works with <![CDATA[ ]]>

You had suggested using this .. and it works in html5 and now I'm going back through flash which sometimes krpano fallsbacks to for older macs with HW accel disabled...

Quoted

<data name="htmldata2">
<![CDATA[
<?php print !empty($desc[$i]) ? '<p>'. str_ireplace("&amp;#39;","'",xmlEntities($desc[$i])) .'</p>' : ''; ?>
]]>
</data>



TLDR;

textfield won't display properly with cdata
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

spacerywirtualne

Professional

Posts: 887

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Saturday, July 15th 2017, 12:50pm

Hi

Of what I remember a TEXT Flash player does not accept such tags. It is limited.

link

Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Saturday, July 15th 2017, 5:05pm

Yeah, I think it used to work though.
I'm pretty sure ive been using cdata before switching to html5 as default.

Without it, any minor mistakes will cause a parse error and the tour will fail.

I guess I'll just have to see what breaks on 3000+ tours and filter any problems..
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Saturday, July 15th 2017, 11:16pm

Hi,

the CDATA xml tag should work in both viewers - HTML5 and Flash - but the syntax/usage need to be correct!

With correct I mean the '<![CDATA[' would need to be the very first data/text in a xml node - even with no whitespace before!

E.g. this is wrong/invalid:

Source code

1
2
3
4
5
<data name="htmldata2">
<![CDATA[
...
]]>
</data>


This would be correct/valid:

Source code

1
2
3
<data name="htmldata2"><![CDATA[
...
]]></data>


See also here:
https://krpano.com/docu/xml/#data

Best regards,
Klaus