Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 26. Dezember 2008, 18:00

Can't load textfield plugin

Hello,

i have some troubles with the textfield plugin.
I'm working on a virtual tour, the xml structure is :
tour.xml (load)-> 1.xml (load)->obj_pano1.xml
.etc...

So, tour.xml is my global xml with view parameters, loading actions...
1.xml is the description of the panoramic 1 with hotspots and camera move...
obj_pano1.xml contains the hotspot for object description : click on a table -> show textfield with description of the product.

The problem is that i can't show the textfield and, with firebug (in firefox), textfield plugin is not loading...
How can i solve my problem ?

you can see the problem at http://www.boutique-lapetitepierre.fr/tour_/ turn left and click on the flash hotspot on the bag.


Thank you

2

Samstag, 27. Dezember 2008, 23:10

Hi,

the problem is the KEEPALL flag in the loadpano() calls,
when KEEPALL is set, all current plugins are kept and plugins from the
new loaded xml are not loaded!
use MERGE instead, and set the "keep" attribute to "true" of all
global plugins (like buttons, editor, ...)

best regards,
Klaus

3

Sonntag, 28. Dezember 2008, 00:56

Hi,

thanks for your answer, but when i use MERGE nothing work, (even i erase all include) the panorama loads, loads, loads, but nothing...
When i use KEEPALL, all work but i can't get the textfield.
I try the loadxml() method in the tour.xml when i load the pano1 on start, and nothing happens.

I update at the adress http://www.boutique-lapetitepierre.fr/tour_/
I make a zip : http://www.boutique-lapetitepierre.fr/tour_/tour.zip if you want get the files to see what happen ;-)

Thanks.

4

Sonntag, 28. Dezember 2008, 23:19

Hi,

you found a new bug ;-)

the "enterfs" and "exitfs" plugins/buttons were the problem,
they don't have the "keep" attribute set to "true",

"keep" is default set to "false" and this means this plugins will be
removed when loading the next xml, and this "next" xml was loaded at the beginning,
and this was so quick, that the loading of the plugins/buttons was not finished when
krpano tries to remove them - this was the bug/problem ;-)
I fixed it now for the next version.

to make your tour working also working now - just add keep="true" to these
two plugins (enterfs and exitfs) in the tour.xml or just remove them,

e.g. - add keep="true" (tour.xml):

Quellcode

1
2
<plugin name="enterfs" url="btn_openfs.jpg"  ... keep="true" />
<plugin name="exitfs"  url="btn_closefs.jpg" ... keep="true" />


best regards,
Klaus

5

Sonntag, 28. Dezember 2008, 23:56

Hi,

thanks very much, now it works fine !!

Ähnliche Themen