You are not logged in.

inside22

Beginner

  • "inside22" started this thread

Posts: 15

Location: Azerbaijan

  • Send private message

1

Tuesday, June 28th 2011, 6:25pm

swfaddress - Do not set pageurl in the address bar

Hello,
I use a plugin swfaddress.
Locally from a folder, everything works, but on the server we have problem. Do not set pageurl in the address bar.
It seems to me that happens from the fact that there is a slash in before of pageurl.

http://360test.mx/

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
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style>
#krpano {
	width: 100%;
	height: 483px;
}
</style>
<script src="/public/js/krpano.js" type="text/javascript"></script>
<script src="/public/js/swfaddress.js" type="text/javascript"></script>
</head>
<body>
<div id="krpano"> </div>
<script type="text/javascript">

	var swf = createswf("/public/flash/krpano_tour.swf");
	swf.addVariable("pano", "/public/xml/main.xml");
	swf.embed("krpano");

</script>
</body>
</html>


main.xml

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
<krpano version="1.0.8">
  <plugin name="swfaddress" url="/public/flash/swfaddress.swf" mode="auto" onurlchange="activatepano(%PANOID, %TYPE);">
    <pano name="pano1" xmlurl="/first.xml" pageurl="/pano1/" pagetitle="Test 1" root="true"/>
    <pano name="pano1" xmlurl="/second.xml" pageurl="/pano1/" pagetitle="Test 2"/>
  </plugin>
  </plugin>
  <plugin name="pl1"
			url="/public/images/pano1.gif"
			align="topleft"
			x="10"
			y="10"
			keep="true"
			onclick="activatepano(/first.xml, xml);"
			/>
  <plugin name="pl2"
			url="/public/images/pano2.gif"
			align="topleft"
			x="80"
			y="10"
			keep="true"
			onclick="activatepano(/second.xml, xml);"
			/>
  <action name="activatepano">if (%2 == xml, loadpano(%1,null,KEEPALL,BLEND(1)););
    if (%2 == scene, loadscene(%1,null,KEEPALL,BLEND(1)););
    wait(blend);</action>
</krpano>


first.xml

Source code

1
2
3
4
5
6
7
8
9
10
<krpano version="1.0.8">
  <image>
    <left  url="/public/panos/first/pano_l.jpg" />
    <front url="/public/panos/first/pano_f.jpg" />
    <right url="/public/panos/first/pano_r.jpg" />
    <back  url="/public/panos/first/pano_b.jpg" />
    <up    url="/public/panos/first/pano_u.jpg" />
    <down  url="/public/panos/first/pano_d.jpg" />
  </image>
</krpano>


second.xml

Source code

1
2
3
4
5
6
7
8
9
10
<krpano version="1.0.8">
  <image>
    <left url="/public/panos/second/pano_l.jpg"/>
    <front url="/public/panos/second/pano_f.jpg"/>
    <right url="/public/panos/second/pano_r.jpg"/>
    <back url="/public/panos/second/pano_b.jpg"/>
    <up url="/public/panos/second/pano_u.jpg"/>
    <down url="/public/panos/second/pano_d.jpg"/>
  </image>
</krpano>

inside22

Beginner

  • "inside22" started this thread

Posts: 15

Location: Azerbaijan

  • Send private message

2

Tuesday, June 28th 2011, 6:32pm

If I remove the slashes, then get an error

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
<krpano version="1.0.8">
  <plugin name="swfaddress" url="public/flash/swfaddress.swf" mode="auto" onurlchange="activatepano(%PANOID, %TYPE);">
    <pano name="pano1" xmlurl="first.xml" pageurl="/pano1/" pagetitle="Test 1" root="true"/>
    <pano name="pano1" xmlurl="second.xml" pageurl="/pano1/" pagetitle="Test 2"/>
  </plugin>
  <plugin name="pl1"
			url="public/images/pano1.gif"
			align="topleft"
			x="10"
			y="10"
			keep="true"
			onclick="activatepano(first.xml, xml);"
			/>
  <plugin name="pl2"
			url="public/images/pano2.gif"
			align="topleft"
			x="80"
			y="10"
			keep="true"
			onclick="activatepano(second.xml, xml);"
			/>
  <action name="activatepano">if (%2 == xml, loadpano(%1,null,KEEPALL,BLEND(1)););
    if (%2 == scene, loadscene(%1,null,KEEPALL,BLEND(1)););
    wait(blend);</action>
</krpano>


ERROR: download of "/public/xml/public/images/pano2.gif" failed
ERROR: download of "/public/xml/public/flash/swfaddress.swf" failed
ERROR: download of "/public/xml/public/images/pano1.gif" failed