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.

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

1

Friday, May 27th 2011, 10:43am

include xml for ipad

I just got addicted to include, that simplifies my "worst on earh," muddy dirty code ain a dirtier but easier to deal with trashy load of xmls.
And I understand it is NOT working on ipads!
:-D
Any solution for this?!

thanx!
Luca.

2

Friday, May 27th 2011, 10:51am

Hi,

the <include> is working in the krpanoJS viewer (since version 1.0.8.12),

but in HTML/JS the xml files must be valid xml files (the Flashplayer excepts also xml files which were against the xml syntax rules),
to check if a xml file is valid - just open it directly in the browser - the browser should show you the location and the type of the xml syntax error,

best regards,
Klaus

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

3

Friday, May 27th 2011, 11:05am

How fast!!!!
Thank you so much. I've no idea of what is a xml syntax, so for SHURE the problem is this!!!

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

4

Friday, May 27th 2011, 11:21am

In fact that is the problem. But I really do not know how to solve it, since my knowledge of coding and xml is below zero (limited to cut and paste)

Source code

1
2
3
Linea numero 23, colonna 2:	
        	<hotspot name="hs1"
	--------^

5

Friday, May 27th 2011, 4:25pm

You are gonna have to show more code if you want help. Or a link to the xml file.

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

6

Tuesday, May 31st 2011, 3:24pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
		<view 
      	hlookat="0" 
      	vlookat="0" 
      	fovtype="MFOV" 
      	fov="90" 
      	maxpixelzoom="2.0" 
      	fovmin="30" 
      	fovmax="110" />

		<preview url="pano-01.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="713" progressive="false">
			<level tiledimagewidth="3565" tiledimageheight="3565">
				<left  url="pano-01.tiles/l3_l_%0v%0h.jpg" />
				<front url="pano-01.tiles/l3_f_%0v%0h.jpg" />
				<right url="pano-01.tiles/l3_r_%0v%0h.jpg" />
				<back  url="pano-01.tiles/l3_b_%0v%0h.jpg" />
				<up	url="pano-01.tiles/l3_u_%0v%0h.jpg" />
				<down  url="pano-01.tiles/l3_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1783" tiledimageheight="1783">
				<left  url="pano-01.tiles/l2_l_%0v%0h.jpg" />
				<front url="pano-01.tiles/l2_f_%0v%0h.jpg" />
				<right url="pano-01.tiles/l2_r_%0v%0h.jpg" />
				<back  url="pano-01.tiles/l2_b_%0v%0h.jpg" />
				<up	url="pano-01.tiles/l2_u_%0v%0h.jpg" />
				<down  url="pano-01.tiles/l2_d_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="892" tiledimageheight="892">
				<left  url="pano-01.tiles/l1_l_%0v%0h.jpg" />
				<front url="pano-01.tiles/l1_f_%0v%0h.jpg" />
				<right url="pano-01.tiles/l1_r_%0v%0h.jpg" />
				<back  url="pano-01.tiles/l1_b_%0v%0h.jpg" />
				<up	url="pano-01.tiles/l1_u_%0v%0h.jpg" />
				<down  url="pano-01.tiles/l1_d_%0v%0h.jpg" />
			</level>
			<mobile>
				<left  url="pano-01.tiles/mobile_l.jpg" />
				<front url="pano-01.tiles/mobile_f.jpg" />
				<right url="pano-01.tiles/mobile_r.jpg" />
				<back  url="pano-01.tiles/mobile_b.jpg" />
				<up	url="pano-01.tiles/mobile_u.jpg" />
				<down  url="pano-01.tiles/mobile_d.jpg" />
			</mobile>
			<tablet>
				<left  url="pano-01.tiles/tablet_l.jpg" />
				<front url="pano-01.tiles/tablet_f.jpg" />
				<right url="pano-01.tiles/tablet_r.jpg" />
				<back  url="pano-01.tiles/tablet_b.jpg" />
				<up	url="pano-01.tiles/tablet_u.jpg" />
				<down  url="pano-01.tiles/tablet_d.jpg" />
			</tablet>
		</image>


this is an example...

7

Wednesday, June 1st 2011, 2:50pm

Hi,

@officinepanottiche
please post a link to the xml or the full xml here, just parts wouldn't help,

regarding to that posted code from you:

Source code

1
2
3
Linea numero 23, colonna 2:
        <hotspot name="hs1"
--------^

there seem to be a xml syntax problem in the xml at line 23, column 2,
but without the full xml code it would not be possible to say what is wrong,

best regards,
Klaus

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

8

Monday, August 8th 2011, 12:50pm

I start to understand.
I can put an external XLM with a
<scene>
</scene>

and all thet is within is ok.
But if I put a
series of actions:

<action name=open-scene1>
</scene>
<action name=open-scene2>
</scene>
<action name=open-scene3>
</scene>
that is an error.

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

9

Monday, August 8th 2011, 2:52pm

Tag mismatch. If you open a tag you must close it.
Action
/action
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour