You are not logged in.

1

Thursday, May 28th 2015, 6:15pm

Comma's causing issues in Showtext.

I'm having issues with commas inside of the showtext plugin. Even when using single quotes around the text, it still errors out after the first comma in the HTML5 and Flash version.

Current code:

Source code

1
2
3
4
5
6
7
<hotspot name="climate" 
    url="../../../img/d/locations/pins/min/climate.png"  
    style="tooltip" 
    ath="-30" 
    atv="-40" 
    onhover="showtext('[h4]Climate: [/h4]Enjoy all four season in the Poconos, especially brilliant falls and white winters.', main);" 
/>


krpano v1.18.4
showtext() v1.18

2

Thursday, May 28th 2015, 6:36pm

Hi,

thanks, this is a known bug in the showtext.xml (missing quotes) and will be fixed in the next release.

To fix it manually edit the showtext.xml and change this line:

Source code

1
set(showtext, action(showtext_xml,%%1,%%2) );
to this:

Source code

1
set(showtext, action(showtext_xml,'%%1','%%2') );


and this line:

Source code

1
set(showtext_text, %1);
to this:

Source code

1
set(showtext_text, '%1');


Best regards,
Klaus

3

Thursday, May 28th 2015, 7:13pm

Perfect, works now. Thank you!

Similar threads