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 answers
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
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in COM
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- WinAPI - right mouse drag & drop and IContextMenu
- Function Returning Excel COM Objects Unexpectedly
- Windows ContextMenuHandler names - Document conflict?
- How to publish a console application with COM interop and trim unused code
- IContextMenu Handler - Should ShellExecute or CreateProcess be used to InvokeCommand?
- Windows Explorer Conditional Context Menu Item for Drive?
- How do I fix an error while trying to send email using Outlook with COM?
- ITypeLib2.GetLibStatistics() always throws AccessViolationException in C#
- Directwrite is not always able to query font
- How can I pass a C++ struct to a C# DLL method using COM interop
- VBA PowerPoint Run-time error '-2147467259' (80004005): Presentation.Close: Failed
- PHP using a dll with COM + dotnet
- d3d11 triangle rendering failure despite everything being properly initialized
- COM context menu InvokeCommand not being called
Related Questions in V8
- vm.SourceTextModule with cachedData
- V8 and big string comparison performance affected a lot by hashing the strings?
- Using Javascript package in R
- How to install V8Js for PHP on Linux Ubuntu 22.04?
- Can you specify webassembly extensions in deno deploy instances?
- Why do JavaScript multiple async/awaits behave differently when it awaits promises vs when it awaits functions returning promises?
- How does the JIT compiler Maglev in chrome v8 perform?
- Does Chromium pass URLs along with JS to V8?
- How to Build Chrome V8 on Linux ARM64?
- How to directly call static methods in classes in libraries in Google AppsScript
- "require is not defined" error in JavaScript V8 C++ application
- Calling webassembly without JS from embedded v8 version 8.3 or later
- libv8: c++ program sometimes segfaults when running JS code in SIGINT handler (after Ctrl+C)
- How to debug v8 builtins
- Exclude JS object from GC marking
Related Questions in SERVERSIDE-JAVASCRIPT
- getting a 404 error AxiosError {message: 'Request failed with status code 404'
- Try Catch Doesn't Return Error When There Is An Error
- Error: Invalid schema, expected `mongodb` or `mongodb+srv` i dont know what the issue could be
- Do nextjs server actions replace the need for edge functions or a traditional backend?
- Loading Retrieving data as well as the search in using datatable
- PUT request gives "Request failed with status code 404" error message in nodejs, axios
- UI Action returning GlideAjax undefined in ServiceNow Workspace
- How to deal with Dom MisMatch - React Hydration failure because of extensions injecting elements inside HEAD tag?
- Why can't I extract the id from my session.user, serverside in nextjs 13
- How to log userId in a server that handles concurrent requests?
- Cannot Render images in React while using Server Side Rendering after creating Build ,Cannot GET /[object%20Object]
- Node JS error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
- Accessing server-side text file using JavaScript
- How can make my server calculate the result even after the user exits the website and store it to database?
- NodeJs TimeStamp not setting up in correct format Firebase-Firestore
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?
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)
There is node-win32ole (
npm install win32ole).