WordPress.org

Ready to get started?Download WordPress

Forums

adding a "Processing" Java "applet" to a blog post (3 posts)

  1. mrwolfy
    Member
    Posted 3 years ago #

    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!!

    <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>

    Here is the Processing applet it "working" with it's self generated "exported HTML.

    http://oliverwolfson.com/scripts/processing/sketch_oct28a/applet/

    Here is the blog post which contains the HTML in my post above. The post is just blank, nothing shows up at all.

    http://oliverwolfson.com/add-a-processing-applet-to-a-blog-post/

  2. huyz
    Member
    Posted 3 years ago #

    There is a plugin specifically for Processing applets: http://wordpress.org/extend/plugins/wordpress-processing-embed/

  3. alexandrudandodu
    Member
    Posted 2 years ago #

    makwak has given a good solution in another forum.
    This also worked for me.
    ...
    As long as the applet is on the same website, something like the following worked for us, inside a page:
    <applet code="SomeApplet.class" width=480 height=240 codebase="http://www.yoururl.com/wp-content/applet";>
    <param name="iconwidth" value="48">
    </param><param name="iconheight" value="48">
    </param></applet>

    In case anyone needs to know!

Topic Closed

This topic has been closed to new replies.

About this Topic