PanoTools mailing list archive

Mailinglist:PanoTools NG
Sender:hans_loepfe
Date/Time:2007-May-09 15:56:27
Subject:supporting multiple WEB-Browsers using one (1) ptviewer.jar

Thread:


PanoTools NG: supporting multiple WEB-Browsers using one (1) ptviewer.jar hans_loepfe 2007-May-09 15:56:27
Hi all

on PanoToolNG WIKI someone placed the code for using one single file of 
PTVIEWER.jar throughout the site: 

http://wiki.panotools.org/Have_a_single_ptviewer.jar_file_per_website

Great idea. I tired to implement it into the XHTML code that supports 
various browsers. But for some reason I did not succeed.

I am a photographer and not a code writer and thus I hope someone in 
the forum might help make this work as anticipated.

The XHTML code listed below executes different code depending on the 
browser. The starting folder is \panoramas. The PTVIEWER jar & class 
files are located in a subdirectory named \applets and the actual 
panorama is located in \images. The files needed for the 
Parameters 'wait' & 'frame' are located in \controllimages.
In case there is no Java-Plugin available it provides a URI to download 
a Java-Plugin.

As I don't want to have all my panoramas in one single folder 
(\panoramas), the XHTML code below would require to have multiple 
copies of PTVIEWER and the folder holding the \controllimages.

As suggested in the PanoToolsNG Wiki, the idea and goal is to have only 
one PTVIEWER for the whole site. Also I'd like to have one set of the 
\controllimages only.

I hope to find someone who already has completed this task successfully 
and is willing to share their findings here.
(Once completed I believe we should place it into the panotools wiki).

Below is the XHTML Code with multiple PTVIEWER jar & class files and 
\controllimages.

The actual panorama can viewed at my website:
http://www.halo-photographs.com/panoramas/test_ptv11.html

(I assume it may have something to do with the positioning of 
PTWIEVER.class file.)

Looking forward to receiving your feedback that lead to a useful 
solution.

Best regards, Hans.


----- begin of XHTML code ----

<!--[if !IE]> Firefox and others will use outer object -->
<object type="application/x-java-applet" classid="java:ptviewer.class" 
archive="ptviewer.jar" width="654" height="429">
        <param name="codebase" value="/assets/ptv" /> 
        <param name="file" value="ptviewer:0" /> 
		<param name="pano0" value="file=images/18863-
18895_PTV.jpg" /> 
		<param name="wait" value="controllimages/HALO-
Logo.gif" />
		<param name="frame" 
value="controllimages/Frame_654x429.gif" />
		<param name="quality" value="3" />
		<param name="auto" value="0.1" />
		<param name="fov" value="80" />
		<param name="fovmax" value="130" />
		<param name="fovmin" value="50" />
		<param name="tilt" value="0" />
		<param name="tiltmin" value="-57" />
		<param name="tiltmax" value="50" />
		<param name="pan" value="0" />
		<param name="panmin" value="-135" />
		<param name="panmax" value="135" />
		<param name="antialias" value="true" />
		<param name="view_height" value="429" />
		<param name="view_width" value="654" />
		<param name="cursor" value="move" />
		<param name="shotspot0" value="x1 y402 a26 b428 
u'ptviewer:ZoomIn()' i'controllimages/zoom_in_T.gif' q-" />
		<param name="shotspot1" value="x26 y402 a51 b428 
u'ptviewer:ZoomOut()' i'controllimages/zoom_out_T.gif' q-" />
		<param name="shotspot2" value="x51 y402 a76 b428 
u'ptviewer:startAutoPan(0.1,0,1)' i'controllimages/refresh_TR.gif' q-
" />
  		<param name="archive" value="ptviewer.jar" />
<!--<![endif]-->

<!-- MSIE (Microsoft Internet Explorer) will use inner object -->
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-
i586.cab" height="429" width="654">
		<param name="code" value="ptviewer" />
		<param name="archive" 
value="/assets/ptv/ptviewer.jar" />
		<param name="file" value="ptviewer:0" /> 
		<param name="pano0" value="file=images/18863-
18895_PTV.jpg" /> 
		<param name="wait" value="controllimages/HALO-
Logo.gif" />
		<param name="frame" 
value="controllimages/Frame_654x429.gif" />
		<param name="quality" value="3" />
		<param name="auto" value="0.1" />
		<param name="fov" value="80" />
		<param name="fovmax" value="130" />
		<param name="fovmin" value="50" />
		<param name="tilt" value="0" />
		<param name="tiltmin" value="-57" />
		<param name="tiltmax" value="50" />
		<param name="pan" value="0" />
		<param name="panmin" value="-135" />
		<param name="panmax" value="135" />
		<param name="antialias" value="true" />
		<param name="view_height" value="429" />
		<param name="view_width" value="654" />
		<param name="cursor" value="move" />
		<param name="shotspot0" value="x1 y402 a26 b428 
u'ptviewer:ZoomIn()' i'controllimages/zoom_in_T.gif' q-" />
		<param name="shotspot1" value="x26 y402 a51 b428 
u'ptviewer:ZoomOut()' i'controllimages/zoom_out_T.gif' q-" />
		<param name="shotspot2" value="x51 y402 a76 b428 
u'ptviewer:startAutoPan(0.1,0,1)' i'controllimages/refresh_TR.gif' q-
" />
        
        <strong>Um das Panorama anzuzeigen ben?t dieser Browser ein 
Java Plug-in.<br />This browser does not have a Java Plug-in to view 
this Panorama.<br />
        <a 
href='http://java.sun.com/products/plugin/downloads/index.html'>Hier 
kann das neueste Java Plug-in geladen werden. / Get the latest Java 
Plug-in here.</a></strong>
    </object>
  <!--[if !IE]> close outer object -->
</object>
<!--<![endif]-->

----- end of XHTML code ----




-- 
<*> Wiki: http://wiki.panotools.org/

<*> Nabble (web) http://www.nabble.com/PanoToolsNG-f15658.html

<*> NG Member Map http://www.panomaps.com/ng/

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/PanoToolsNG/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/PanoToolsNG/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:#removed# 
    mailto:#removed#

<*> To unsubscribe from this group, send an email to:
    #removed#

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Next thread:

Previous thread:

back to search page