Page 1 of 1

Any way to extract Javascript to be viewed offline?

PostPosted: Sat Jul 30, 2005 1:02 pm
by Bobtheduck
I am trying to allow an applet to be shown on a laptop that will not be online, and my attempts at extracting it or saving complete webpages and such haven't worked... Any ideas?

This is the site I want the applet from:

http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/

While I've had success with isolating Quicktime and Flash files with 99.9 percent accuracy, I thought beforehand than Isolated javascript files wouldn't work on their own... Is there any way I can show this file without being online? I don't think just storing it in the cache will work, either... IE and Firefox are both female dogs when it comes to trying to view cached material offline, for some reason, though older versions of IE weren't bad...

Any ideas?

PostPosted: Sat Jul 30, 2005 7:13 pm
by Godly Paladin
I've often wished the same thing, especially when I was a kid. Not for the glorious purposes of science, mind you, but so I could play all those online Java games without being connected. :lol:

PostPosted: Sun Jul 31, 2005 2:22 am
by LorentzForce
Easy.

Notice that the Java class file is called upon from an applet tag. All you have to do is save the Java class (which in this case should be this), make a tiny HTML file that has just the above applet code call (as well as other HTML tags required, like <html> and <body> etc etc), and just view that. Just make sure the path set is correct and all, according to where you saved the files and etc.

[edit] For additional note, that's not Javascript, it's Java. There is a big difference between the two. You're extracting a Java program, not Javascript.

PostPosted: Mon Aug 01, 2005 9:17 am
by Mithrandir
Thanks LF. I was about to post that. lol

PostPosted: Thu Aug 04, 2005 4:37 pm
by Fsiphskilm
I can't he

PostPosted: Fri Aug 05, 2005 2:01 pm
by Godly Paladin
Cowardly, pathetic, and confusing.


You said it.