View Single Post
  #6 (permalink)  
Old 09-04-2006, 07:13 AM
Dirk Dirk is offline
Moderator
 
Posts: 701
Default

Yeah, I've been looking at that, this is the section:

Code:
Com_Zimbra_YMaps.prototype.toolTipPoppedUp =
function(spanElement, obj, context, canvas) {
	canvas.innerHTML = '<center><img width="345" height="245" id="'+ ZmZimletBase.encodeId(obj)+'" src="'+this.getResource('blank_pixel.gif')+'"/></center>';
	if (Com_Zimbra_YMaps.CACHE[obj+"img"]) {
		Com_Zimbra_YMaps._displayImage(Com_Zimbra_YMaps.CACHE[obj+"img"], obj);
	} else {
		var url = ZmZimletBase.PROXY + AjxStringUtil.urlComponentEncode(Com_Zimbra_YMaps.URL + AjxStringUtil.urlComponentEncode(obj));
		DBG.println(AjxDebug.DBG2, "Com_Zimbra_YMaps URL: " + url);
		AjxRpc.invoke(null, url, null, new AjxCallback(this, Com_Zimbra_YMaps._callback, obj), true);
	}
};
Looking at it, it seems to be checking to see if it's already loaded the result and cached it, so if I throw that part away and just get down to the meat, I have:

Code:
var url = ZmZimletBase.PROXY + AjxStringUtil.urlComponentEncode(Com_Zimbra_YMaps.URL + AjxStringUtil.urlComponentEncode(obj));
DBG.println(AjxDebug.DBG2, "Com_Zimbra_YMaps URL: " + url);
AjxRpc.invoke(null, url, null, new AjxCallback(this, Com_Zimbra_YMaps._callback, obj), true);
Trying to understand what that does is my current problem. I've no idea what the line starting DBG.println is doing and I'm getting rather confused.

Yes, I've experimented, nope it didnt work Come on marcmac, put me out of my misery here!
Reply With Quote