Sie sind nicht angemeldet.

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

1

Freitag, 14. Juli 2017, 17:39

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...

Zitat

<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

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Samstag, 15. Juli 2017, 12:50

Hi

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

link

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Samstag, 15. Juli 2017, 17:05

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

Samstag, 15. Juli 2017, 23:16

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:

Quellcode

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


This would be correct/valid:

Quellcode

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


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

Best regards,
Klaus