PDA

View Full Version : why wont "&xml_file=myXml.xml" work?


gordee
08-02-2008, 05:59 PM
Hi,

here is my code;

<spot id="043-016" alt="016/Mill 3"
url="icons/arrowDown.png"
pan="75" tilt="0" linked="images/043"
onClick="pano.leash=free; loadPano(panoName=images/016&xml_file=The Tour/Mill_3.xml);" />

It is essential for my tour because it contains 110 panos so I need to do it in sections!

I have double checked the filenames/directories etc so i am a bit stuck :(

cheathamlane
08-02-2008, 06:38 PM
What happens if you add a question mark in there?:

loadPano(?panoName=images/016&xml_file=The Tour/Mill_3.xml);

gordee
08-02-2008, 06:41 PM
It still doesn't load.

I've tried the ampersand at the end as well

loadPano(panoName=images/016&xml_file=The Tour/Mill_3.xml&);

gordee
08-02-2008, 06:44 PM
Do I have to change anything in the html file?

LepLep
08-02-2008, 06:46 PM
i suppose that you are using cube faces with _0 suffixes, i had same problem, it just doesnt load new xml. probably pano.swf for _0 faces contain a bug (oops, someone had to say that), while i used pano.swf for _f suffixes it worked (you can still use old files, just type after <pano> panotype = cube0

gordee
08-02-2008, 07:39 PM
Er no,

I'm using spherical images I think, or 360's (I'm not a photographer!) with the cyl_converter plugin.

Virtualguide
08-03-2008, 01:22 PM
Hi,
try st like this:
loadPano(pano.xml?xml_file=The Tour/Mill_3.xml&panoName=images/016&)

gordee
08-03-2008, 02:18 PM
Thanks for the reply.

Still no luck though.

cheathamlane
08-03-2008, 03:22 PM
gordee:

Do you have a link to your example? That could be very helpful.

gordee
08-03-2008, 03:25 PM
What do you want, just the xml file?

The tour itself has 30 plus panos and will take a long time to upload!

cheathamlane
08-03-2008, 04:07 PM
hi gordee:

well, strip it down a bit? use a couple low-res panos just for an example?

Virtualguide
08-05-2008, 09:46 AM
Paste your xml code, pls.

This one should work, I used this many times, so if it does not work for U,
there must be something wrong:

loadPano(pano.swf?xml_file=The Tour/Mill_3.xml&......other parameters)

1. do you have right path to pano.swf file? I use e.g. folder "files" for all my swf files, so there must be: loadPano(files/pano.xml? .... off course
2. change folder "The Tour" to "The_Tour"
3. what about Mill_3.xml? do You have panoName assigned there? I have experiences that if You have e.g. panoName=pano3 there and from other xml You call this xml but with pano1, it would still load pano3, cause it prefers what is in the xml code. I use xml without this paramater, without pan,tilt, hfov etc. then... And if I want to load some pano with some xml I use loadpano(files/pano.swf?xml_file=01_1.xml&panoName=pano1&pan=20&tilt=1&hfov=95)
U can assign one or several panos to one xml and then call just this xml:
loadpano(files/pano.swf?xml_file=01_1.xml)

Virtualguide
08-05-2008, 09:50 AM
Now I noticed that I wrote bad code to U before:
Hi,
try st like this:
loadPano(pano.xml?xml_file=The Tour/Mill_3.xml&panoName=images/016&)

Should be:
Hi,
try st like this:
loadPano(pano.swf?xml_file=The Tour/Mill_3.xml&panoName=images/016&)

off course,
Sorry for that :D
Igor

gordee
08-05-2008, 06:11 PM
This is the section from the xml;

<spot id="043-016" alt="016/Mill 3"

url="icons/arrowDown.png"
pan="75" tilt="0" linked="images/043"
onClick="pano.leash=free; loadPano(pano.swf?
xml_file=The_Tour/Mill_3.xml&panoName=images/016&);" />

Mill_3.xml starts with img 016;

panoType = cylinder
panoName = images/016
zoomHome = 0.45
zoomMax =1
panHome = 0

Virtualguide
08-06-2008, 08:12 PM
Hi,
Try to make it as simple as it can be first:

<spot id="043-016" url="icons/arrowDown.png" pan="75" tilt="0" linked="images/043" onClick="loadPano(pano.swf?xml_file=The_Tour/Mill_3.xml)" />

and let see what happens

If U have panoName = images/016 specified in Mill_3.xml, U dont need to use parameter &panoName=images/016 at the end of loadpano

gordee
08-06-2008, 09:24 PM
Hi,

I tried that and got the loading failed screen :(

<spot id="043-016" alt="016/Mill 3"
url="icons/arrowDown.png"
pan="75" tilt="0" linked="images/043"
onClick="loadPano(pano.swf?xml_file=The_Tour/Mill_3.xml);" />

cheathamlane
08-07-2008, 11:49 PM
gordee:

There's no way you can upload even a small example, with, say, just two panos in it? That can be EXTREMELY helpful in trying to figure out things.

gordee
08-10-2008, 04:40 PM
OK here is a section,

http://www.gordoneverett.co.uk/virtul_tours/Mills 9,5,4.html

and the xml file (hotspot 043-016 is about halfway down)
http://www.gordoneverett.co.uk/virtul_tours/Mill 9.xml

and also here

<spot id="043-016" alt="016/Mill 3"
url="icons/arrowDown.png"
pan="75" tilt="0" linked="images/043"
onClick="loadPano(pano.swf?xml_file=The_Tour/Mill_3.xml&);"
/>

In pano follow this route(tooltips on hotspots),

Straight ahead to hotspot 047 > 044/Mill5 > 043 Mill/4 > 016/Mill 3
The other hotspots corresponding panos are not on the server

016 is entry another section which I have already completed and this is where I need to load the xml for hotspot placement.

As I mentioned this is one part of a very large tour which at the latest count contains 150 panos! So linking the smaller sections is quite a big deal for me



Thanks for any help

P.S. These hotspots are temporary only!

cheathamlane
08-10-2008, 05:22 PM
Hi gordee:

OK, took a few tries to follow your path (would've been nice if the offending hotspot was just in the first pano ;) )... BUT, being able to see a live example showed me the (probable) issue in about 25 seconds.

Using Safari's "activity viewer" I come up with:

1) http://www.gordoneverett.co.uk/virtul_tours/pano.jpg = not found

2) http://www.gordoneverett.co.uk/virtul_tours/The_Tour/Mill_3.xml = not found

--
Regarding #1:
onClick="loadPano(pano.swf?xml_file=The_Tour/Mill_3.xml&);"

You're calling out to load a new "pano.swf" file, which by default looks for a pano file(s) named "pano.jpg", in the same directory as the Web page which has the FPP presentation in it. You need to tell it what pano to load. Your other spots say things like:

onClick="loadPano(panoName=images/029);"

So I bet it would work if you said something like:

onClick="loadPano(panoName=images/016);"

That gets your panorama loading, assuming you have a pano file named "016.jpg" living in the "images" folder.

Regarding #2:
The path to your XML file is incorrect. Either put the XML file named "Mill_3" in the folder "The_Tour", or correct the path to your XML file. Generally, all paths need to be relative to the Web page which is loading your FPP presentation.

So I bet it would work if you said something like:

onClick="loadPano(panoName=images/016&xml_file=CorrectPathTo/Mill_3.xml);"

The only other thing I'd note is that you're using spaces in some of your file names -- I'd avoid that, because Flash (and/or some browsers) could choke on things if they don't get properly encoded to "%20" somehow.

Hope this helps, and keep us posted!

gordee
08-10-2008, 05:44 PM
Thanks for helping

OK,

So the path to xml was correct for my local file sysem but not on the server.
I have corrected this now to;

onClick="loadPano(panoName=images/016&xml_file=Mill_3.xml);"

as the files are in the same folder this should be right.

However, the image is still loading without hotspots :(

Slightly off topic - any ideas why it wont work in IE7? I have java enabled and the latest flash player. Weird.

gordee
08-10-2008, 05:48 PM
Of course Mill_3.xml needs to be on the server to work doesn't it?
So I uploaded that....

and now the image does not load onClick

cheathamlane
08-10-2008, 06:20 PM
Hey there:

In your Mill_3.xml -- what happens if you ditch the <cylconverter> and <autorotator> elements, and also remove everything (including panoname) in the <parameters> element?

If that doesn't work, try putting "disableReloading=0" in your first XML file's <parameters> area. (Check FPP documentation for disableReloading).

?

gordee
08-10-2008, 06:25 PM
Even the swf layers in parameters?

cheathamlane
08-10-2008, 06:34 PM
Hey there:

Yes! EVERYTHING.

In your Mill_3.xml -- what happens if you ditch the <cylconverter> and <autorotator> elements, and also remove everything (including panoname) in the <parameters> element?

Then:
If that doesn't work, try putting "disableReloading=0" in your first XML file's <parameters> area. (Check FPP documentation for disableReloading).

Try this last bit first with the empty parameters in the "new" Mill_3.xml. Then, if it doesn't work, try it with parameters present in Mill_3.xml.

gordee
08-10-2008, 06:39 PM
I've tried all of that and the pano is not loading :(

siesfor
08-10-2008, 06:42 PM
actually, your problem lies in your <cylConverter> tags, you have cylConverter spelled with a capital C in your layers, but with all non-capital letters in your tags. This was causing a cylConverter failure in the flash debugger. remove the cylconverter tags, or spell them with the same capitalization and everything will work ok calling

loadpano(panoname=images/016&xml_file=The_Tour/Mill_3.xml)

gordee
08-10-2008, 07:06 PM
Well spotted!

Still doesn't work though :(

So the cylConverter tags are unnecessary?

It works for other people so why not me!

here it is again in case I'm missing something

<spot id="043-016" alt="016/Mill 3" url="icons/arrowDown.png"
pan="75" tilt="0" linked="images/043"
onClick="loadPano(panoName=images/016&xml_file=Mill_3.xml);" />

siesfor
08-10-2008, 07:14 PM
did you remove the tags from both Mill_9 and Mill_3?

when I did that, I was able to get it to work.

The Debugger kept throwing up fatal errors for the cylConverter. However you capitalize the plugins in the layer, they have to be capitalized the same in the rest of the xml. But since you don't have any parameters in them anyways, you probably could just remove them.

gordee
08-10-2008, 07:46 PM
EUREKA!!

it was the cylconverter tags. I've completely removed them from both xml files and it works!

I am certain that the tutorial files state that you need to insert the cylconverter tags with no parameters - thats why I did it !?

Anyways thanks guys for all your help. Its really appreciated

cheathamlane
08-10-2008, 09:38 PM
Good news! Guess I should have said to remove the tag from both XML files and not just one... :P

Be sure to let us know when the whole mammoth things goes live!

gordee
08-10-2008, 09:48 PM
I will, mammoth is the word! Deadline to go live is the 5th sept but the tour is just one part of the project that I am responsible for!

thanks again