The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Perl script and applet loading

Sharp101Sharp101 TorontoRegistered User regular
edited November 2006 in Help / Advice Forum
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.

Sharp101 on

Posts

  • stigweardstigweard Registered User regular
    edited November 2006
    It could be nothing, but this is the main difference I see (other than the first page uses no css but the second does)

    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&quot; 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.

    stigweard on
  • Bob SappBob Sapp Registered User regular
    edited November 2006
    Probably can't find the applet. Why www2 instead of www?

    Bob Sapp on
    fizzatar.jpg
  • stigweardstigweard Registered User regular
    edited November 2006
    It is the 2 in www2. I just checked them manually and that is the problem. It only finds the class if the 2 isn't there.

    stigweard on
  • Sharp101Sharp101 TorontoRegistered User regular
    edited November 2006
    hmm... I thought I tried that....



    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?

    Sharp101 on
Sign In or Register to comment.