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.

1

Thursday, May 23rd 2013, 6:25pm

Error in the HTML

Hi everyone!

I'm totally new in krpano, i've created a virtual tour with interactive areas with poligonal hotspots, it totally worked out with the .swf and the tour_editor.html, but when i try to open the tour.html it shows me the fatal error: parsing failing, and when i open the html editor again, the hotspots to travel from pano to pano doesnt work but all the poligonal hotspots works ok ! so can anyone tell me whats going on, maybe i need a extra plugin or something?

thank you! (:

Tuur

Sage

Posts: 3,339

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Friday, May 24th 2013, 12:31am

That sounds like an xml problem.
So..
Drop your xml files one by one directly on a brouwser and it will show you where a error is.
Not sure about all brouwsers but safari works fine for me..
When there is no error in that xml you will see the code.

Maybe you erased an apostrophe by accident?

Do you have an online link?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Monday, May 27th 2013, 7:41pm

Hi Tuur!

thanks for your reply, i've found the errors and made it work, but now the poligonal hotspots doesn't work on the .html file, and still works perfect on the .swf

I havent uploaded my pano, but here's the sintaxis i used for the poligonal hotspot which doesn't work


<hotspot name="INFO_01" url="panos/PANO01_sphere.tiles/INFO_01.png"
enabled="false"
alpha="0.00"
ath="0.0" atv="0.0" distorted="true" rx="0" ry="0" rz="0" edge="lefttop" zorder="1" ox="-224.609375" oy="-136.71875" width="292.96875" height="330.078125"
/>


<hotspot name="auto_01" alpha="0.00" capture="false" zorder="2" alpha="0" onover="tween(hotspot[INFO_01].alpha,1.0);" onout="tween(hotspot[INFO_01].alpha,0.0);"
>
<point ath="-27.2" atv="11.0" />
<point ath="-17.9" atv="11.8" />
<point ath="-16.7" atv="13.4" />
<point ath="-14.2" atv="14.4" />
<point ath="-12.1" atv="12.9" />
<point ath="-10.4" atv="11.4" />
<point ath="-6.2" atv="11.5" />
<point ath="-5.5" atv="11.1" />
<point ath="-5.1" atv="9.6" />
<point ath="-4.7" atv="5.8" />
<point ath="-5.9" atv="4.0" />
<point ath="-6.6" atv="2.5" />
<point ath="-7.4" atv="2.6" />
<point ath="-12.2" atv="0.8" />
<point ath="-14.9" atv="-0.2" />
<point ath="-22.3" atv="-0.2" />
<point ath="-26.0" atv="-0.2" />
<point ath="-27.1" atv="0.3" />
<point ath="-27.0" atv="1.0" />
<point ath="-27.0" atv="3.4" />
<point ath="-27.9" atv="5.1" />
<point ath="-28.2" atv="5.6" />
<point ath="-27.9" atv="8.8" />
<point ath="-27.9" atv="10.3" />
</hotspot>

Tuur

Sage

Posts: 3,339

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Monday, May 27th 2013, 9:11pm

Polygonal hotspots do not work on html5 .. Yet..
Read here
http://www.krpano.com/forum/wbb/index.ph…46407#post46407

Is that what you mean?
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

5

Monday, May 27th 2013, 10:30pm

That was exactly what i meant!!!

I feel depressed now, need another way to do what i want to :/...thank you so much Tuur (:

have a nice day!

Tuur

Sage

Posts: 3,339

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

Umalo

Professional

Posts: 1,048

Location: Osijek, Croatia, EU

  • Send private message

7

Tuesday, May 28th 2013, 6:22pm

You can create transparent PNG hotspot (distorted with pixelhittest="true") and place it over the area you want to be active. Position it on the panorama, define and test the actions and at the end turn alpha off. So, you will have "invisible" PNG over your panorama that will catch the click event in HTML5 too.
To get a feeling:


It doesn't needs to be so precise. It is just here to catch the onclick event.
What is not good that this image is also taking some memory/time to load. If you define it as devices="ios" it will not load on Flash where you use normal poligonal hotspot.

Similar threads