oh, yeah!
Einar Coutin wrote:
I bet you have done that with mine, haven't you? ;)
2006/5/12, Bob Hanson <[EMAIL PROTECTED]>:
Jmol users,
Happy Friday! I was just thinking that a technique I use a lot might
interest some of the others on this list.
Say there's a web page that uses Jmol in an interesting way and you
want to see how it works. Here's a great trick:
1) Copy the source of that page to a file on your hard drive, or
download it "webpage, as HTML" (not web page -- complete). So it is
just the first page. No .js files, no .jar files, no data files.
2) Now edit the file and add at the top:
<base href=.....>
where that ..... is the actual URL it comes from.
3) Start your local version of the page. It should run EXACTLY as on
the website. It will load the Jar files and .js files and data files
from that original site without a hitch. Images and all.
But the interesting thing is that you can then CHANGE the JavaScript
on that page or add some JavaScript to the page to override functions,
adding alert() and such.
I do this a lot, because people ask me why their page isn't working.
I've found this to be very easy -- I can add a <script> tag and a bit
of extra JavaScript if I need to -- change their functions, etc. --
and then let them know what the problem is.
Bob Hanson
--
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
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
--
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
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users