OK, here you go. Did you know? Jmol.js can be on any server whatsoever, provided the base tag is set carefully?

So, if you REALLY want to be "up to date" (That is, let Miguel's fiddling with Jmol.js instantly mess up everything you have created.... -- Hey, just kidding, Miguel, but read on....)

Tell me what you think this does:

<script language=javascript>thisbase=document.location.href</script>
<base href=http://jmol.sourceforge.net/jmol/>
<script src="Jmol.js"></script>
<script language=javascript>
 document.write("<base href=\""+thisbase+"\">")
</script>

For example, see:

http://www.stolaf.edu/people/hansonr/jmol/basetest/basetest.htm

I wouldn't doubt if this chokes on some machines. Please tell me if it does, because I use something like it on another project where I use a "JavaScript depository" on one campus server to keep the traffic low on the machine I have my pages on. All the JavaScript comes from that other server, while the actual client/server interaction is with my machine.

Bob


Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge." - Albert Einstein




-------------------------------------------------------
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to