Subscribe to this thread
Home - General / All posts - call javascript external file
lionel

560 post(s)
#19-Dec-17 03:03

Hi

1) How radian studio (9) and manifold Feature (9) can call external javascript library locate in map project or outside map project ?

Is there a page in the documenation about this ?

2) In web server and client there is loader cover in many articles but for manifold howto does it work ?

https://www.nczonline.net/blog/2016/04/es6-module-loading-more-complicated-than-you-think/

3) is there a way to use nodejs context ENV inside a map project ?

4) Does javascript is ES6 compatible so already support loader ?

Regard's


join image

"Because my dad promised me" ( interstellar ) but blackhole don't exist

best hardware with no ads focus on quality features price like manifold see xiaomi

adamw


8,401 post(s)
#20-Dec-17 09:11

There is no easy way to do this for Javascript currently. This is in the plans.

.NET scripts can reference DLLs. You can put shared code there.

jockeryl
172 post(s)
#21-Dec-17 08:55

Hi,

You can start a process and call Node.exe directly and handle the input/output directly from C#.

There is a simple example here:

https://gist.github.com/elerch/5628117

EdgeJS also seems to be a possible solution.

https://github.com/tjanczuk/edge/tree/master#scripting-nodejs-from-clr

Regards,

Joakim

lionel

560 post(s)
#16-Dec-18 13:46

Hi

after one year ( we are 16 december 2018) is there some new functionalities about javascript loader ( module import export ) in mfd9 ?

Can i know where javascript language shine in manifold 9 ? Since manifold is base on Microsoft eco system Does have javacscript language inside manifold make sense when the microsoft language are from history C++ then VB and C# ( java like implemented by delphi /borland developper ) ?

It seem Microsoft goes to javascript even with office excel but loader matter ( same concept ? )

regard's

Attachments:
image_link.map


join image

"Because my dad promised me" ( interstellar ) but blackhole don't exist

best hardware with no ads focus on quality features price like manifold see xiaomi

adamw


8,401 post(s)
#18-Dec-18 13:22

We are using the Javascript engine internally for a number of things, what's stopping us from using it more in regular scripts is that the object model is different from .NET, and so far adding one more object model was taking a backseat to other things - because whoever wants to script 9 can do so using the finished object model we already have. This will change once we finish our works on more pressing issues - more specifically, when we move to work on the web server API.

Javascript powered with a modern Javascript engine has some really unique qualities which make it great (and superior to alternatives) in a number of cases.

Manifold User Community Use Agreement Copyright (C) 2007-2017 Manifold Software Limited. All rights reserved.