Skip to content

Why is NW.SHELL only wokring in root DIR of app?

For some reason NW.SHELL fuctions are only working for files in root folder of my app. It wont let me use an absolute path or a relative path. Example “/relative/path/text.txt” or D:/relative/path/text.txt however text.txt will work with NW.SHELL function as long as the text file is in the same ro…

Compare an array with 0 in JavaScript

I was going through my company’s code base and found a statement that compares an array with 0 like this: array > 0; if we let array = [“1”], which has a single element, the above statement would be true; but if let array = [“1”, “2”] or [], the statement would bec…

Sending variables to a php script for database from java script

First, I have looked at just about every other question here on this subject but I can’t find anything like I need. I’m trying to send the userId for one signal to a PHP script to put it in a database. I have tried many different versions of this. Here is the script that does send to the PHP scrip…

Use an object attribute to create an array with it [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago. Improve this question Hi guys i want to do something “simple” but not for me, I hav…