Skip to content

Commit

Permalink
mar oct 14 19:27:56 CDT 2008
Browse files Browse the repository at this point in the history
  • Loading branch information
vic committed Oct 15, 2008
1 parent fad8f9e commit 58edf22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@
var JWMScript = function() { util.root = this; };
extend(JWMScript.prototype, {
initialize : util.exception_handle(function(javaObject) {
alert("JS INIT");
this.javaObject = javaObject;
alert("initing permissions");
javaObject.initPermissions(window);
alert("Permissions inited");
var instances = window.JWMScript.instances || {};
var id = this.javaObject.getParameter("object_id");
alert("initing javascript object "+id);
instances[id].initialize(this);
// instances[id].initialize(this);
}),

register : util.exception_handle(function(types, callback) {
Expand Down
5 changes: 3 additions & 2 deletions core/src/main/resources/com/jwmsolutions/jwmscript/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ JWMScript = function() {
extend(obj.prototype, {

initialize : function(jwmscript) {
alert("Applet INIT");
return jwmscript.register.apply(jwmscript, [this.types, this.setup]);
},

applet : function() {
var str = "";
str += ' <applet ';
str += '<applet ';
if (this.codebase) { str += ' codebase="'+this.codebase+'" '; }
str += ' archive="'+this.archive+'" ';
str += ' code="com.jwmsolutions.jwmscript.JWMScriptApplet" ';
str += ' width="0" height="0" mayscript="mayscript" scriptable="true" ';
str += ' > ';
str += ' <param name="object_id" value="'+this.id+'"> ';
str += ' </applet> ';
str += '</applet> ';
return str;
},

Expand Down

0 comments on commit 58edf22

Please sign in to comment.