View Single Post
  #6 (permalink)  
Old 09-10-2009, 09:27 AM
mune72 mune72 is offline
Active Member
 
Posts: 34
Default

Still trying to access to zimbra's variables...

The framework was .xml -> .js -> .jsp

I read this page Zimlet JavaScript Class - Zimbra :: Wiki

So I modified my .js in this way
Code:
function Org_munet_prova() {
}

Org_munet_prova.prototype = new ZmZimletBase();
Org_munet_prova.prototype.constructor = Org_munet_prova;

Org_munet_prova.init = function() {
};

// Called by the Zimbra framework when the panel item was double clicked
Org_munet_prova.prototype.doubleClicked = function() {
	this.singleClicked();
};

// Called by the Zimbra framework when the panel item was clicked
Org_munet_prova.prototype.singleClicked = function() {
	// this.getUserProperty(“PropertyName”)
	var variabile = this.getUserPropertyInfo("websiteUrl")["value"];

	var url = this.getResource("ciao.jsp");
	window.oppwin = window.open(url, "oppwin", "menubar=no,width=0.1px,height=0.1px");
};
but with the line
Code:
var variabile = this.getUserPropertyInfo("websiteUrl")["value"];
doesn't work while commenting it out
Code:
//var variabile = this.getUserPropertyInfo("websiteUrl")["value"];
works.

Anybody can help? Thanks
Reply With Quote