× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Kelly

WScript.exe just a wrapper that amoung others languages calls the MS
javascript engine that also runs in
their browser so it is just "running the javascript engine from the shell
instead of via the browser" = without
the browsers debugging tools ;-)

On Thu, Mar 22, 2018 at 1:12 AM, Kelly Cookson <KCookson@xxxxxxxxxxxx>
wrote:

I know this will probably raise the question "Why?" But...

I came across an article that says you can run JavaScript in the Windows
OS and in the Microsoft IIS web server:
https://www.codeproject.com/Articles/831752/JavaScript-
for-Windows-server-side
I tried the first hello world example on my laptop and it worked. I need
to see if I can get my JS scripts to run in IIS.

Given that we have XMLSERVICE up and running on our IBM i, could I:

1. Copy the itoolkit.js from the IFS into a directory on my laptop.

2. Write a JS script that requires itoolkit.js and, say, calls a CL
program with the iPgm class.

3. Run that JS script on my laptop via Windows or the Microsoft IIS
web server (no use of Node).

In theory, would this work? I do not want explore this possibility if it
cannot possibly work. I would rather just know it is impossible up
front-and why.

I'm also looking at the iisnode module to run Node apps in Microsoft IIS:
https://www.simplymigrate.com/2017/04/11/internet-
information-server-iis-node-js-in-producton-iisnode/
This becomes much more interesting if my Node app can use itoolkit.js to
remotely access IBM i resources analogous to the way a Java app using
jt400.jar can remotely access IBM i resources.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com>

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.