beefproject/beef — Issue #365: Add beefjs API Functions: Attach Applet and Remove Applet
Author: passbe
Created: 2011-12-10 22:57:52+00:00
State: open

Add a function that attaches an applet to the DOM. Also, add another function that will remove the applet. Add the code to /modules/beefjs/dom.js.

/**
* @params: {String} id: reference identifier to the applet.
* @params: {String} code: name of the class to be loaded. For example, beef.class.
* @params: {String} codebase: the url to load the applet from.
* @params: {String} archive: the jar that contains the code.
*/

attach_applet(id, code=null, codebase=null, archive=null)

detach_applet(id)
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=154