Weird problem, I've searched online everywhere for a solution, and came up with nothing.
I load an applet in html with
<APPLET CODE="ass2.class" WIDTH=330 HEIGHT=280>
but trying to load the same html page generated through a perl script like so
print qq(<APPLET CODE="http://www2.scs.ryerson.ca/~mfiume/ass2/ass2.class" WIDTH=330 HEIGHT=280>);
fails for some reason. it does have the applet load and size correctly, but it fails to init the class file....
if you want to see it in action,
http://www.scs.ryerson.ca/~mfiume/ass2/
it reloads the page through perl when you hit sumbit.
Any ideas as to WHY this stupidness happens?
And yes, this was a school assignment. It's already handed in, so dont worry about me using your work for marks.
Posts
First
<APPLET CODE="ass2.class" WIDTH=330 HEIGHT=280>Sorry, this example requires Java.</APPLET></p>
Second
<APPLET CODE="http://www2.scs.ryerson.ca/~mfiume/ass2/ass2.class" WIDTH=330 HEIGHT=280>Sorry, this example requires Java.</APPLET></p>
The code paths are different. I don't think it should make a difference but it is the only real major difference I noticed.
Anyway, one is a remote path and one is direct because the Perl script is run in the CGI Bin folder, and the html file is run in the same folder as the class file.
www2 is for running scripts, for some reason our school server requires that for perl/cgi. Its just habit to put it in now.
I check your suggestion later today and see if it does anything. Thanks guys.
-edit-
Yeah... the www2 thing didn't change anything. Any other ideas?