Use AngularJS to send messages to slim clients

Looking for advice on how to send real-time notifications to all computers on a network from a web application developed with angularJS. The application records workplace accidents to a database, and when a new record is saved, I want to display an alert/message on each computer connected to the network, most of which are thin clients linked to a terminal server.

I'm unsure about which technology would be best for achieving this. Any suggestions or recommendations would be greatly appreciated!

Thank you in advance for your assistance!

Best regards

Answer №1

To ensure data is saved to the database, a server-side component of the application must be in place. This component will handle the saving of data and can also generate a mailing list for specific users or groups. By sending targeted emails instead of using pop-up message boxes on network computers, a more efficient and practical communication method is utilized. No additional technology is necessary; all required tools are already available.

Answer №2

Appreciate the response, Mladen!

While I do have a function set up to send emails to specific users, there are several client machines that are unable to send or receive emails. As a result, I need to find an alternative way to notify them.

Currently, I'm delving into node.js child_process spawn in order to execute commands via the command prompt. However, I haven't quite grasped how to use node.js effectively yet.

Many thanks once again!

Edit: For those seeking a similar solution:

I was able to display a message on my computer using JavaSript with the following code:

java.lang.Runtime.getRuntime().exec("cmd /c msg userID msg_text");

However, this method doesn't fully meet my requirements. I'll provide updates here once I come across a more suitable solution.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using Node.js to parse JSON data fetched from the web

My current challenge involves retrieving and parsing JSON from a web API (https://api.coinmarketcap.com/v1/ticker/?limit=3) in order to extract the name and price_usd fields. For example: [ { ... sample data provided ... } ] The code snippet I am wo ...

Angular - Enhance ngFor index while filtering

I am currently working with a list that utilizes an *ngFor loop in the template: <li *ngFor="let product of products | filterProducts: selectedFilter; index as productId"> <a [routerLink]="['/product', productId]"> {{produc ...

Various strategies for improving the performance of a NodeJs server-side API that conducts calculations

My current project involves making an API call from the client (Angular v10) to the server-side (NodeJs v12). This API call is responsible for performing calculations on a large dataset, which typically takes around 7-10 minutes to complete. The main goal ...

Centering the scrollIntoView feature on mobile devices is presenting challenges with NextJS applications

Description While navigating on mobile browsers, I'm facing a challenge with keeping an element centered as I scroll due to the browser window minimizing. I've experimented with different solutions such as utilizing the react-scroll library and ...

Despite including jQuery, the error message 'JQ is not defined' is still appearing

Alright, so an individual over at is uploading content to The upload.cgi script responds with: <script language="javascript" type="text/javascript" src="http://upload.foobar.com/jquery-1.3.2.min.js"> </script> <script language="javascript ...

Have the quotes within my markup been replaced with HTML entities?

Currently, I am working on a content page that uses a master page which includes a text box and a button. My goal is to have the button execute some JavaScript code before performing any other actions. At the moment, I am in the testing phase of this JavaS ...

What is the encoding for Javascript in UTF-8?

My current ajax call is able to successfully send the request and retrieve the expected response. However, I am facing difficulty in correctly displaying it in li items. $.ajax({ url: "{% url 'users:profile_page_tags_get' 'primary&apos ...

The function getComputedStyle('background-color') will return a transparent value that does not inherit from any ancestor element

When using getComputedStyle, it is expected to return the final computed CSS property value. However, for background-color, browsers tend to return "transparent" (or rgba(x,x,x,0)) instead of computing the inherited value from ancestors. The method only s ...

Capturing AJAX responses within a Chrome Extension

We are currently in the process of developing a Chrome extension to enhance an existing system by simplifying various tasks. This extension will heavily utilize AJAX technology, making it more efficient compared to web scraping or manually triggering even ...

What are some strategies to troubleshoot unexpected outcomes when using useEffect in React?

import { createContext, useState, useEffect } from "react"; const UniqueContext = createContext(undefined); const UniqueContextProvider = (props) => { const [ items, setItems ] = useState([]); useEffect(() => { console.log(items ...

Preventing reflected XSS attacks in static asset requests in node/express

After conducting a penetration test using the Burp tool on my node(express)/angular application, I discovered a reflected XSS vulnerability. This vulnerability was specifically identified when making a GET request for static assets (no other vulnerabilitie ...

The ExpressJS app generator seems to be struggling to identify and interpret the flags

I seem to be having trouble running the express app generator with flags. For example, when I run express --version, it interprets the --version part as a target directory and creates the app there. This is happening on Windows XP SP3. Could I be doi ...

The AJAX data variable fails to send to PHP script although $_POST is defined

I am at my wit's end with this problem. I am attempting to send a variable to a PHP script using AJAX, and although I can confirm that $_POST is set, the variable remains undefined. Oddly enough, I have used almost the same code in other instances an ...

Having trouble executing the .map function within the function

Context In the process of developing a React-Redux application, I am faced with the task of handling axios calls to an external API over which I have no control. The specific axios request in question is executed by a function called "getData". This reque ...

Issues with Angular-Formly: The onChange event is not triggering when clicking the modal button

When I try to trigger a modal on the onChange event of a custom checkbox in Formly, the modal appears but the buttons are not functional. Can anyone help me figure out what I'm doing wrong? { key: 'coordinatesToLocateSite&apo ...

Steps for dynamically adding or removing multiple fields in a form

I am looking to create a form with dynamically added and deleted fields based on user requirements. For example, a person may have multiple phone numbers and email addresses. The goal is to allow users to add more than one phone number or email address if ...

Identify dead hyperlinks on a webpage with the help of selenium webdriver while steering clear of links that

I have been trying to identify broken links on a webpage by extracting all anchor tags. However, some of the links are dynamically generated through JavaScript. When I attempt to print out the list of all the links, I encounter a StaleElementReferenceExcep ...

Utilizing EventEmitters for cascading operations in Angular 2 dropdown menus

I have a form with several cascading drop-downs - the selection in one drop-down determines the options available in the next. Each drop-down retrieves its values from an async data service, and Angular EventEmitter is used to handle events and populate su ...

The AngularJS functionality is failing to execute within the Dockerfile during the npm installation process. The issue

Update: I encountered an issue where I can't name the container client. There seems to be a hidden container that I am unable to delete, causing some inconvenience. I am in the process of setting up a Docker file environment for a MEAN stack applicat ...

Create an Angular 2 webpack production project and ensure that the dist folder does not contain any source code

I am currently developing a web application using Angular 2 with TypeScript and angular-cli. I needed to test the application on the server without uploading the source code, so I used the command "ng build --prod". Despite deleting all .map files from the ...