Questions tagged [jscript]
JScript is a scripting language based on the ECMAScript standard, created by Microsoft and implemented in a range of environments. You would expect this tag to accompany questions regarding these environments, such as Windows Script Host (WSH), Active Server Pages (ASP) and HTML Applications (HTA).
jscript
1,190
questions
0
votes
0
answers
34
views
JScript module export not recognized using Webpack & Typescript
Problem
I have a function named index declared with export in a Jscript file, when trying to use it I get an error message telling "does not provide an export named 'index'"
This is a long ...
2
votes
1
answer
72
views
Is there a method for checking if an array has a certain element in it?
In this instance, I want to find out if a array has a element in it:
function OnTestCmd(scriptCmdData){
print(["Jenny", "Matilda", "Greta"].indexOf("Matilda"...
0
votes
1
answer
109
views
Simple javascript functions to scroll next/previous H1 to top of screen - in an HTA application run with MSHTA.exe
I am a hobby programmer, and have made an HTA file, with some JavaScript and a single contentEditable <DIV>. Using minimal JavaScript I can make keyboard shortcuts to format, save, and exit.
I ...
0
votes
0
answers
116
views
Brand new to ag-grid, downloaded community, getting error can't import the export AgPromise
Installed ag-grid community, when I add an import
import { AgGridReact } from 'ag-grid-react';
and try to run, I get the following error
./node_modules/ag-grid-react/dist/package/index.esm.mjs Can't ...
0
votes
1
answer
66
views
WSH/Javascript: how to access collection items [duplicate]
I am writing a JavaScript that shall be executed in Windows Scripting Host on the command line with cscript.exe. I need JSON parsing, so I decided on JavaScript instead of VBScript.
Now I am trying to ...
0
votes
0
answers
36
views
How to append html/jscript data to a txt file?
I need to append the data entered in a form on a webpage into a txt file called "text.txt".
I'm not sure what the issue is but my knowledge of jscript is very limited.
<html>
<...
0
votes
1
answer
31
views
Im trying to change the style of text using buttons but cant get it to work for multiple with the same id
Im trying to make a button that can add and remove a style for certain parts of my website in this case changing the background colors of the elements.
Although the buttons work fine when their is one ...
-1
votes
1
answer
29
views
How to list all environment variables in JScript [duplicate]
My prog.js looks like this:
var WshShell = WSH.CreateObject("WScript.Shell");
var env = WshShell.Environment("PROCESS");
WSH.Echo(env.Length); // 46
WSH.Echo(env("OS")); ...
-2
votes
1
answer
67
views
Can someone figure this out why this is not working in windows 10? it works well in windows 11
I just found some code here. I love the idea of the display (UI) and have been using it to make some compiled fixer for my organization's daily operation.
Here is the full code:
@if (@CodeSection == @...
0
votes
1
answer
56
views
Mobile autocomplete submitting form without clicking sign in button
I had a problem in double posting the form with csrf enabled.
In my setup: mobile autocomplete was posting the form automatically, but before redirecting if I click submit as all fields are filled it ...
0
votes
0
answers
21
views
Run two functions on the same click button
I want to change my code in order to run the functions setMeansForm and setAtaGrpForm at the same time and on the same button. I want to keep the same logic, but it seems that's not working when i try ...
0
votes
0
answers
34
views
HTML not picking up mp3/mp4 file in data-media-src
This is for an interactive transcript showing a media element. I would like to call the media file (mp3/mp4) from my device, but it is not working.
This is to call the media, but it doesn't seem to be ...
0
votes
1
answer
44
views
Does Clearscript ScriptEngine retain code for subsequent Execute calls?
var sharedJSLibrary = "bla";
var specificDownstreamScript = "bla2";
scriptEngine.Execute(sharedJSLibrary);
scriptEngine.Execute(specificDownstreamScript);
Do the clearScript ...
0
votes
0
answers
28
views
Check if date more than user SQL date timestamp
I am very new to programming and i am trying to make a simple membership login page.
However after trying for nearly 2 days now to get my code working accurately and trying multiple different methods ...
-1
votes
1
answer
67
views
Need better way to use HTML in a C# form when WebBrowser uses outdated IE11
I am showing HTML in a windows form where I can edit and quickly see the results. The following code works but if the "ShowString" has a reference to a site that does not allow IE11 then I ...