I'm trying to migrate a piece of code from plain JavaScript to Aurelia
, and I can't seem to figure out the following code (executed from within a view-model):
var callbackFunction = 'DmsToWorkflowsCallback';
var treeEnum = new BrowseTreeNodeEnums();
var contentType = treeEnum.Document;
var url = dmsUrlPrefix +
"BrowseDlgEx.aspx?" +
"multiSelect=1" +
"&title=Attach" +
"&callback=" + callbackFunction +
"&contentType=" + contentType +
"&context=btworkflows;" + domain;
window.open(url, "_blank", "height=600, width=800,status=0,toolbar=0,menubar=0,location=no,modal=1,dialog=yes,top=100,left=100");
In plain JavaScript, the calling window (which is a custom plugin with no documentation) was able to locate the callback function (line 1) and execute the rest of the business logic correctly; in Aurelia, however, it doesn't seem able to locate the provided function!
I tried specifying the callback function both inside and outside the class (using regular function declaration), as well as using this.DmsToWorkflowsCallback
as the callback function specification, without success...
I even tried adding a dummy callback function inside the View using a <script>
tag, but still couldn't even get a break-point to hit!
If anyone has any suggestions I would greatly appreciate it!