|
|
How to 'codebase' PMVR
How to use PMVR on multiple domains
|
Step One - add 'codebase' to applets tags
|
|
PMVR tours are typically hosted and displayed from a
single domain. However, if required, you can then display your
tours from any number of other domains by using the codebase
feature of PMVR 5.1a (or later).
This is accomplished by using the <applet>
codebase attribute,
and managed by you via a maycodebase.txt text file, which lists the domains
which you authorize to remotely 'codebase' your tours. For example, if you have a tour hosted at:
http://www.mydomain.com/tour/index.html
which you want to view from other domains, all applets on the index.html
web page would be modified to have a new codebase attribute:
<applet codebase="http://www.mydomain.com/tour/" ...>
|
Step Two - create a maycodebase.txt file
|
|
Then, create a maycodebase.txt file next to the pmvr.jar file in the /tour/
folder on www.mydomain.com, where each line in the file is an external domain name that is
allowed to remotely access and view your virtual tour. For example, to grant external access to
www.myfriend.com, create this maycodebase.txt text file:
myfriend.com
NOTE: To grant access to all external domains, add a single line with only an asterisk (new to PMVR 5.1b).
|
Step Three - copy the tour HTML file
|
|
Finally, copy only the index.html from www.mydomain.com
to www.myfriend.com, and the virtual tour will work. Please note that
all other files (pmvr.jar, scripts, images, etc), are being referenced from
www.mydomain.com.
To see a live example of 'codebase',
The Idyll Mouse One
virtual tour
can be displayed from a
Duckware web page
because access was specifically
granted.
|
Copyright © 2000-2008 Duckware
|
|