SaintsLair Posted January 25, 2004 Posted January 25, 2004 I'm having trouble with the following java script. It won't initiate on the webpage: <applet code="digitalclock.class" codebase="http://candywrapperz.com/home/www" width=300 height=60></applet> Any help would be greatly appreciated. Thanks, Andy Quote
Nick_ Posted January 25, 2004 Posted January 25, 2004 Check your codebase, I'm not sure offhand if it's requesting a URL or filename, however http://candywrapperz.com/home/www doesn't look correct. /home/username/www/ is your root html directory. Quote
borfast Posted January 25, 2004 Posted January 25, 2004 Andy, first of all, that's Java, not JavaScript. And I also agree with Nick, http://candywrapperz.com/home/www doesn't even exist on your server. I also tried getting http://candywrapperz.com/digitalclock.class and it doesn't work either, so your applet must be in some other directory. Are you sure you uploaded it to your public_html directory on the server? Quote
TCH-Don Posted January 25, 2004 Posted January 25, 2004 I just tried the one in cpanel, and it works fine. Is that the one you are trying to use? Quote
SaintsLair Posted January 26, 2004 Author Posted January 26, 2004 Hi Raul & Don, Don I'm not using the one from cpanel. I trying to use another one. Raul the digitalclock.class is in the public_html folder along with all the .gif files. It works fine from my html program on my hard drive but when I tried it one the actual website it doesn't work. It says "loading java applet failed". It's probably a simple error on my part since this is all new to me. Thanks for trying, Andy Quote
SaintsLair Posted January 26, 2004 Author Posted January 26, 2004 Hi Guys, I got it working. I created the problem by renaming all my files so the file names would be all lower case. The application had caps to start "DigitalClock.class", by renaming it "digitalclock.class" the applet wasn't recognized. Thanks for trying to jump in and help. Take care, Andy Rock Sign Quote
Nick_ Posted January 26, 2004 Posted January 26, 2004 Great SaintsLair As always, don't hesitate to let us know if you have any other questions at all. Quote
TCH-Don Posted January 26, 2004 Posted January 26, 2004 Glad you have it working, and by the way, Welcome to the family Andy and your new home! as you can see, your new family is ready to help. If you need anything else, just ask Quote
SEO Posted January 26, 2004 Posted January 26, 2004 Andy, first of all, that's Java, not JavaScript. Raul, that was my exact thought when I read the opening post. However when you look at it again, Andy did write java script which is indeed correct (well Java script would have been better ). Never really thought about it, I guess technically I should write JavaScript script when I am referring to JavaScript Hey Andy... the ole case sensitive gets us all! I would like to welcome you too... Welcome Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.