We are about to switch to a new forum software. Until then we have removed the registration on this forum.
dear folks,
after posting a sketch on openprocessing (http://www.openprocessing.org/sketch/172851) and emailing my friends about it, a couple of them report that it doesn't run for them. it runs for me. what might be the problem? thanks in advance...
Answers
Java applets, for some time already, demands the user to whitelist sites in its plugin config! :-<
In my case using OpenJDK in Linux, I wasn't able to whitelist OpenProcessing, b/c the applet itself resides in another domain! Therefore, only Oracle's Java plugin works there! :o3
Oops! It's already running under Processing.JS framework. X_X
And since it's using a non-WebGL renderer, it shoulda been working even in old browsers! :-??
Perhaps you should try http://studio.sketchpad.cc/ host site too:
http://studio.processingtogether.com/sp/pad/export/ro.9NwgKBhS$Gxju/latest
new data: my sketch does not run in internet explorer. most other sketches on the site ran fine, but a couple didn't. otherwise, my sketch runs in firefox and chrome. what's different about running in internet explorer. and how can i tweak my sketch to get it to run in all browsers?
In relation to browser standards, IE has always been the rogue in the midst!
When I program I don't mind whether my JS script's gonna work on IE! >:)
Besides, due to the fact that IE is so entrenched in the Windows OS internals and the danger of its ActiveX,
I have always stayed clear away from it even when I had Win98! [-X
If you or your friends insist on taking the associated risks, at least make sure it's version 11 or more! :-@
my principal concern is that anyone with a browser can see my sketch, if that is doable.
here is my code:
"my sketch does not run in internet explorer"
You should be specific. IE11 is a beast far different from IE7, or even from IE9!
I had this issue, and I think it's likely to be in relation to p5.js rather than your code:
IE8 and below are a bit archaic, not supporting several methods used in P5.js, e.g. 'bind'
the console.log is supported weirdly in IE so that using the bind method on it throws an error (apparently in some versions of Safari as well) at line 4079 in p5.js: p5.prototype.print = console.log.bind(console). Info here.... Anyway, I gave up trying to find a general solution but as I don't need the console for this version, I just changed it to an empty function in P5. I.e. search for "console.log.bind" in P5, then replace that line with: function () {};
the XMLHttpRequest can throw an error in some versions of IE if it is cross domain. In other words, you need to make sure that when you are referencing data you have it on the same site, and refer to it as e.g. "somefolder/mydata.csv" rather than "http://etc.com/somefolder.mydata.csv"
There might be other stuff, but that's what it took to get mine working cross-browser mypolitics.org.uk/BESpanel2005-10/
Good luck :)