We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › xHTML 1.0 Strict and applet preloading!
Pages: 1 2 
xHTML 1.0 Strict and applet preloading! (Read 6145 times)
Re: xHTML 1.0 Strict and applet preloading!
Reply #15 - Jan 23rd, 2007, 4:05pm
 
wow stephen, sounds great!
i IMed you my email, think we should discuss the project and set up a website for the js-preloading. i have a svn we can use (don't like sourceforge, it's been somewhat unreliable in the past).

F
Re: xHTML 1.0 Strict and applet preloading!
Reply #16 - Jan 23rd, 2007, 4:07pm
 
Doing ao.onstep(0); crashes the browser. TAG_APPLET seems to refute all attempts at getting it to work.

When I tried using relative paths to the .jar it loaded bypassing the loading bar. My timelapse demo still has a print out of the keys - which is why I use it for this (as well as its 1mb size).
This is the object (note that I'm launching this from /misc/ which is at the same depth as /PBeta/):
Code:

var ao = new AppletObject('timelapseSmall', ['timelapseSmall.jar' ], '640', '480', 'true', '../PBeta/', [], AppletObjects.TAG_OBJECT);

This is what the console said:
Code:

load: class de.bezier.js.preloading.Preloading.class not found.
java.lang.ClassNotFoundException: de.bezier.js.preloading.Preloading.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: E:\MY DOCUMENTS\SITES\robotacid\PBeta\de\bezier\js\preloading\Preloading\class.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
P:toggle play, S:toggle save images, +:frame forward, -:frame back, 1&2:bleach camera image, 3&4:blobFrames-/+,
I:toggle edges, R:save frame, D:toggle image, T:toggle 3D, O:toggle tunnel 5&6:tunnel Alpha
7&8:threhold levels C:toggle tunnel shift U:toggle tunnel outline F:tunnel fill 9&0:3D depth Z:Blobs off/on
W:webcam/timelapse

So a silent death from ZZZZZZ.jar and timelapse launches as usual.

Uploaded the new crashy version.

I went for a work trial for these guys back in autumn last year and all of my time there I just consistently uprooted bugs in their in-house language. It's one of my special powers. (Although being unemployed sucks I'm really quite glad I'll never see that awful language again.)
Re: xHTML 1.0 Strict and applet preloading!
Reply #17 - Jan 23rd, 2007, 4:49pm
 
it just says that ZZZZZZ.jar was not found ... it should be in:

http://www.robotacid.com/PBeta/ZZZZZZ.jar

( same classpath for all jars )

and try making oninit look like:

ao.oninit = function () {
   ao.onstep(0);
};

i think otherwise you are setting innerHTML twice immediately after another. that might cause the browser crash (replacing an element that's currently being replaced). if you can put a zip with all your files somewhere i can debug it for you ...

F
Re: xHTML 1.0 Strict and applet preloading!
Reply #18 - Jan 23rd, 2007, 9:34pm
 
I'm putting together a localised version per your suggestion and then I'm gonna try and break it again. If I run into trouble I'll probably mail you, any specifics about operation I'll post back here. This is a cool topic, but my powers of bug finding shall root out the issues I'm sure.

Thanks for all the XHTML stuff by the way. It prompted me to validate my folio and it helped me uncover a bug. Now I've got an XHTML Transitional portfolio that can even scan itself in a recursive stylee.
Pages: 1 2