David wrote:

> <applet code="JmolAppletControl"
> archive="http://doolittle.ibls.gla.ac.uk/JmolApplet.jar";

This snippet from an html page contains an absolute URL to a specific file
on a specific web server.

This is not a good idea.

All pathnames in all web pages should be directory relative ... as in

  archive="JmolApplet.jar"
OR
  archive="../JmolApplet.jar"
OR
  archive="jmol/JmolApplet.jar"
OR
  archive="../jmol/JmolApplet.jar"


If you use an absolute URL then:
 - you cannot move the code to another web server
 - you cannot rename the web server
 - you cannot move the code to another place on the
   same web server
 - you cannot have a separate 'staging' area where you can
   test things out prior to release


This applies to the JmolApplet, but it also applies to all url references
within your web pages. If the links are within your own site then they
should be directory relative URLs.


One can build a site using absolute URLs (which begin with
http://server.name) or server-relative URLs (which begin with /), and
everything will work. But you end up painting yourself into a corner.

It is just as easy to build things using relative URLs from the beginning.
Then you have more flexibility to move your site from development machines
to testing machines to production machines.



Miguel



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to