Author Topic: Scripting enhancments- to support javascript libs?  (Read 2295 times)

Mike Hatch

  • EA Novice
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Scripting enhancments- to support javascript libs?
« 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
Code: [Select]
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.
« Last Edit: April 23, 2015, 07:43:27 am by mihatch »