You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2011-03-04 20:17:47

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

HTML hotspots - how do they work?

Hi, I'm struggling with HTML hotspots. When I enter some basic HTML (like basic format tags with text) into the HTML hotspot field, the result will usually crash the resulting pano with an IO error at startup. Looking at the xml, the html code for the hotspot looks like garbage. Comparing the xml to xml examples on the krpano site only reinforces this. I also get the feeling that using the textfield plugin for krpano gives more functionality when it comes to HTML, but I don't understand enough yet to really get my head round it.

I can't find any relevant forum posts or other web resources outlining how the HTML code for hotspots should work. Could someone please either point me to some resources or post:
- some simple HTML code they have inserted in Panotour Pro
- the resulting portion of XML
- and if possible a link to the pano where it is used

Thank you in advance.
Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#2 2011-03-04 21:06:18

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9730
Website

Re: HTML hotspots - how do they work?

I played with this very briefly long ago, as I recall what you need to enter is a link to a file that contains the HTML.

Obviously this file (and any other files it references, such as graphics) have to be placed 'sensibly' in the file system in relation to the other files created by PTP on exporting a tour and then have to be uploaded as well as other tour files and moust keep the correct relative positions in the file structure.

As I understand it this feature is essentially using the textfield plugin (but built into PTP).

It's quite a fiddle to use - if you only want something simple to appear it may be easier to create itr as a graphic? For what did you hope to use this feature for?

I don't know if the HTML feature works on iDevices .

Last edited by mediavets (2011-03-04 21:10:05)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2011-03-04 21:52:11

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6431
Website

Re: HTML hotspots - how do they work?

mediavets wrote:

I don't know if the HTML feature works on iDevices .

HTML "features" work - as long as they don´t contain Flash . . . cool

best, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#4 2011-03-04 21:59:39

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6431
Website

Re: HTML hotspots - how do they work?

MikeMcFarlane wrote:

Hi, I'm struggling with HTML hotspots. When I enter some basic HTML (like basic format tags with text) into the HTML hotspot field, the result will usually crash the resulting pano with an IO error at startup. Looking at the xml, the html code for the hotspot looks like garbage. Comparing the xml to xml examples on the krpano site only reinforces this. I also get the feeling that using the textfield plugin for krpano gives more functionality when it comes to HTML, but I don't understand enough yet to really get my head round it.

I can't find any relevant forum posts or other web resources outlining how the HTML code for hotspots should work. Could someone please either point me to some resources or post:
- some simple HTML code they have inserted in Panotour Pro
- the resulting portion of XML
- and if possible a link to the pano where it is used

Thank you in advance.
Mike

There are two ways to approach things: learning the basics - which is difficult using apps without real documentation - or try and error in doing.
I´m trying, erroing and trying again for some years now - and slowly i get it. There´s no way around trying and erroing and learning by making mistakes.

Here in the forum you can find a lot of help and practical tips - look at the tips an links and try to being precise in naming what you exactly want or need.
Helping you is difficult otherwise.

best, Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#5 2011-03-04 23:11:07

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: HTML hotspots - how do they work?

mediavets wrote:

I played with this very briefly long ago, as I recall what you need to enter is a link to a file that contains the HTML.

Obviously this file (and any other files it references, such as graphics) have to be placed 'sensibly' in the file system in relation to the other files created by PTP on exporting a tour and then have to be uploaded as well as other tour files and moust keep the correct relative positions in the file structure.

As I understand it this feature is essentially using the textfield plugin (but built into PTP).

It's quite a fiddle to use - if you only want something simple to appear it may be easier to create itr as a graphic? For what did you hope to use this feature for?

I don't know if the HTML feature works on iDevices .

Hi Andrew

That makes sense. I will give that a try tomorrow when my brain is awake again. Yes, I quickly got to understand that file/dir structure is very important to how krpano works.

There are a few concepts that I would like to try by embedding some html, but mainly it is just to provide more information to viewers with the option of links for further info. Nothing too complex, I am just trying to get my head around the basic functionality so I can make best use of it in the future. I love to learn, and hopefully when I know more to share:-)

Thanks for your help, will write an update tomorrow, including whether it works on Steveices.

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#6 2011-03-04 23:21:11

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: HTML hotspots - how do they work?

klausesser wrote:

There are two ways to approach things: learning the basics - which is difficult using apps without real documentation - or try and error in doing.
I´m trying, erroing and trying again for some years now - and slowly i get it. There´s no way around trying and erroing and learning by making mistakes.

Here in the forum you can find a lot of help and practical tips - look at the tips an links and try to being precise in naming what you exactly want or need.
Helping you is difficult otherwise.

best, Klaus

Hi Klaus

Thank you also for your reply. Right now, I am just trying to learn the basics and it is difficult as you say without real documentation. I also don't know the right words/jargon/names, so it is difficult to search for information or to ask specific questions. And to be honest, I was slightly embarrassed to be asking such a basic question and I felt even more embarrassed to be too specific for fear of making myself look really stupid. Sorry.
Generally if I can get a pointer in the right direction I can figure it out from there. In this case Panotour documentation gives the impression that I should enter HTML into the HTML field, but as Andrew has pointed out, it should be a link to a file. I would never have thought to try that, but now I get the concept I will get stuck in.
Lots of trial and error. But that is the best way to learn right?
Kind regards
Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#7 2011-03-05 00:42:45

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9730
Website

Re: HTML hotspots - how do they work?

klausesser wrote:

mediavets wrote:

I don't know if the HTML feature works on iDevices .

HTML "features" work - as long as they don´t contain Flash . . . cool

best, Klaus

The Hotspot link to HTML feature won't work with iDevices because it uses the krpano textfield.swf plugin.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#8 2011-03-05 02:07:57

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6431
Website

Re: HTML hotspots - how do they work?

MikeMcFarlane wrote:

And to be honest, I was slightly embarrassed to be asking such a basic question and I felt even more embarrassed to be too specific for fear of making myself look really stupid. Sorry.

No, no - i know the state you´re in right now very well . . . cool and felt the same. But as we say: "there are no stupid questions - only stupid answers" . . ;-)

I wasn´t ironic - it´s really the only way to try and fail . . . and get help. I had a lot of help here from the forum, to name for example Andrew, who´s very kind and patient.

When i know what you precisely need i can post some of my code as example - it´s very basic and mostly the code APT and PTP generate anyway and which i fine-tuned in the xml.

So don´t be shy to ask questions!

best, KLaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#9 2011-03-05 02:28:29

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6431
Website

Re: HTML hotspots - how do they work?

mediavets wrote:

klausesser wrote:

mediavets wrote:

I don't know if the HTML feature works on iDevices .

HTML "features" work - as long as they don´t contain Flash . . . cool

best, Klaus

The Hotspot link to HTML feature won't work with iDevices because it uses the krpano textfield.swf plugin.

Yeah - in that case it contains Flash . . wink But the html-template which PTP generates works completely on iDevices.
(But i don´t the hack know how to adapt it to my needs . . rollcool)
Panos and even tours work on iPads if they´re done with PTP and/or "make pano (multires) droplet" and "make vtour (multires) droplet".
The droplets produce code for both platforms and the panos work fine.

best, Klaus

Last edited by klausesser (2011-03-05 02:28:49)


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#10 2011-03-05 15:23:55

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: HTML hotspots - how do they work?

Hi Andrew and Klaus
Thanks again for your considerate replies.
I got the HTML hotspots working as you described. Is just literally a case of dropping the HTML file into the pano dir and include the filename in the PTP HTML field. Simples.
Going to have a play with how far I can push the HTML now:-)
Thanks and kind regards
Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson