Is it possible (using one of the server side implementations of javascript .. see http://www.nakedjavascript.com/getting-started-55) to instantiate a COM object and invoke methods on it?
Can you call COM components from server side javascript?
2.6k Views Asked by Nigel Thorne At
2
There are 2 best solutions below
2
Martijn
On
That depends on which server-side implementation you’re using.
When using ASP/JS (or any other framework using Microsoft’s Windows Scripting engine), that’s not a problem using the ActiveXObject constructor.
When using JSDB, you can use the ActiveX constructor.
Node.js doesn’t really work on Windows, only thru Cygwin, so ActiveX probably won’t be supported.
I have no idea how easy or difficult it would be to access COM objects from SpiderMonkey, V8 or SquirrelFish directly. They have C/C++ interfaces — and are open source, so if you know your way in the language, you could probably add it.
Related Questions in WINDOWS
- Get Maximum Log Size
- Debugging Windows Services while starting
- Possible consequences of duplicate ProgId for different classes
- How to chain BCryptEncrypt and BCryptDecrypt calls using AES in GCM mode?
- mingw-64 conflicting declarations when cross-compiling
- I run an EXE program from a Windows Service but I can't see form C#?
- Why is PowerShell "not recognized" when installing Chocolatey?
- How to check if Windows device is phone or tablet/pc?
- How to add directories to Cygwin gcc default search path
- Can't install anything with pip2 on Windows 7 due to UnicodeDecodeError
- Active directory and linux nslcd binding without extending the AD schema
- How To Prevent Over Scrolling in Scroll Viewer Windows Phone 8.1
- Unicode error from pip install
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- How can I implement the same models and data across ASP.NET and Windows Apps
Related Questions in COM
- Possible consequences of duplicate ProgId for different classes
- Open array declaration lost when regenerating interop.dll with tlbimp.exe from type-lib
- How does a server that expose COM functions via IDispatch can distinct between different clients that Invoke functions without passing any ID param?
- Call IConnectionPoint::Advise cause a crash
- Is it safe to cast a IDispatch* into an IUnknown*, without using QueryInterface, for interprocess COM objects?
- Custom HRESULT from COM component
- Return multiple variables to JavaScript from COM
- How to read from exchange server asynchronously using IMoniker and IStream Interface
- How can a dialog become responsive while waiting for a call to DoModal() to return?
- ICallFactory with 32-bit and 64-bit type libraries side by side
- Report generation in server
- What is required in Delphi 2007 to use Variant arrays?
- How to convert string array to SAFEARRAY or VARIANT or COleVariant?
- ArcObjects ExcelWorkspaceFactory Won't Release Excel File
- Calling a method of a WMI Class
Related Questions in V8
- How to map JavaScript code to Google v8?
- Traversing a string using arm assembly inside V8 source
- What is difference between "node --prof" and using node-profiler
- Why does my 8-puzzle solution runs faster when I create an array twice
- is there any workaround for broken v8 date parser?
- does google v8 support the keyword "let"? not in node.js
- Determining cause of deoptimisation
- How do I store a reference to external pointer in a function template in V8?
- C++ null reference in V8 when trying to get Isolate in callback
- How to get the current function's name or linenumbers in V8
- Constructing an object to return by value elsewhere
- V8: ES6 proxies don't support iteration protocol when targeting custom objects?
- "no template named 'WeakCallbackData' in namespace 'v8'" error when installing npm packages
- Google V8 - Neither v8.dll nor v8.dll.lib getting built in release mode
- How to return a new V8 javascript "class" instance from within C++?
Related Questions in SERVERSIDE-JAVASCRIPT
- AEM ServerSide JavaScript host
- Managing 'window' object in Isomorphic App with ReactJS and Flask Python
- Why is Array.push(element) not working sometimes?
- How to use JSON (.parse() / .stringify() ) in IIS server-side
- Changing the content of HTML body at runtime periodically - NodeJS
- How do I run AJAX scripts locally on my machine using IIS(or any related technology)?
- textual substitution in an html template by ${varName} notation
- JavaScript working differently locally than online
- Does it make sense to build pure JavaScript based web applications (both client and server side)?
- Is there a production stable RDBMS module for RingoJS
- How to programatically check if an application is installed or not using JAVASCRIPT?
- javascript - not in the browser - but to process a file
- Executing JavaScript from the server code in asp.net
- Can you call COM components from server side javascript?
- Confirmation box from server side in asp.net
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is node-win32ole (
npm install win32ole).