Gray Box Where Applet Should Be
-
I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org
-
I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org
The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.
-
The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.
Thanks, I'll look into that. :) Jeremy Davis http://www.astad.org
-
The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.
If don't seem to have a CODEBASE parameter. All I've got is...
Exactly what is specified in the example as supplied with VisualCafe. All that is in the deployed directory the the HTML web page with in, and customer.jar Jeremy Davis http://www.astad.org
-
If don't seem to have a CODEBASE parameter. All I've got is...
Exactly what is specified in the example as supplied with VisualCafe. All that is in the deployed directory the the HTML web page with in, and customer.jar Jeremy Davis http://www.astad.org
-
I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org
Try getting the java console up on IE6. You need to enable it on the advanced options window, restart IE, and click on it on the view window. This will give you a crude java backtrace if any exceptions occur, and will tell you about any missing classes etc..
-
I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org