Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mike Hatch on April 23, 2015, 07:41:08 am
-
Are there any plans to enhance the scripting capabilities to support the full complement of browser-based scripting utilities and javascript libraries? For example, I would like to be able to use jQuery to support async loading of other assets and calls out to REST services from within a Sparx script.
This does not seem to be possible today because within the scripting environment, not all of the DOM objects are accessible. The setTimeout function, for example, normally a method on the window object in a browser environment, is not available.
I tried loading IE through automation do do this var window = new ActiveXObject("InternetExplorer.Application");
, but not all of the methods are available. Nor do I think it would end up working well to marshall all of the events and data across the automation boundary.