----- Original Message -----
Sent: Thursday, September 15, 2005 10:55
AM
Subject: Callback method
Hello all,...
I have a _javascript_ code that works okay with ASV
but fails to work with Batik.
I keep a list of Objects and Callback functions
(stored as Strings) in an Array.
Here's the code:
function
Node_Callback(node,callback){
this.node=node;
this.callback=callback;
}
var callBackList= new Array();
var objX= new Window();
callBackList[0]=new
Node_Callback(objX,"callmeMethod");
When I try to call the callback method in Adobe
as:
var o = callBackList[0];
o.node[o.callback](param1,
param2);
It works fine.
But when I do that with Batik, it
depends,...sometimes, if the SVG content associated with the object is visible
(display != "none") then it might work, otherwise it fails.
I think this is largely to do with the _javascript_
engine of Batik.
Many thanks to all.
Musbah