I am using Wordpress on my server for blogging. I can add html to blog posts, embed video from youtube etc, embed flash.
How should i set up the HTML to add a processing "applet" to a blog post?
Works fine if I upload and navigate to the exported directory. I tried cutting and pasting the relevant HTML (below) from the index page, and adding the absolute path to the code. Did not work .
Do I need to use: URL.openStream? If so, how to set it up?
Thanks for reading!!
How should i set up the HTML to add a processing "applet" to a blog post?
Works fine if I upload and navigate to the exported directory. I tried cutting and pasting the relevant HTML (below) from the index page, and adding the absolute path to the code. Did not work .
Do I need to use: URL.openStream? If so, how to set it up?
Thanks for reading!!
<script type="text/javascript"
src="http://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var attributes = {
code: 'http://mydomain.com/scripts/processing/sketch_oct28a/applet/sketch_oct28a.class',
archive: 'http://mydomain.com/scripts/processing/sketch_oct28a/applet/sketch_oct28a.jar',
width: 600,
height: 400,
image: 'http://mydomain.com/scripts/processing/sketch_oct28a/applet/loading.gif'
};
var parameters = { };
var version = '1.5';
deployJava.runApplet(attributes, parameters, version);
/* ]]> */
</script>
1