1,176 questions
Best practices
0
votes
5
replies
121
views
How do I get started coding HTML Applications (HTA) for game development
I’m interested in learning how to build projects using HTML Applications (HTA), especially because I enjoy older Windows technologies and would like to experiment with making simple games in this ...
0
votes
1
answer
71
views
How to Get Length of Byte Array Microsoft JScript
As the title says, how can i get the length of byte array in microsoft JScript. Assuming i converted a string to byte array using:
var asc = WScript.CreateObject("System.Text.UTF8Encoding");
...
1
vote
0
answers
276
views
Classic ASP JScript Broken after Windows 11 24H2 [duplicate]
I've just upgraded windows 11 to 24H2. I write JScript in Classic ASP running on IIS.
After upgrading none of my code works anymore. I get
Catastrophic Error
and then
Script Engine Exception" &...
2
votes
0
answers
29
views
Classic ASP: Discern VBScript arrays in JScript code [duplicate]
I have a function in JScript that accepts a string or an array as parameter:
<script language="JScript" runat="server">
function handleThis(what) {
if (typeof what === '...
0
votes
0
answers
75
views
VBScript parsing JSON arrays by index using variable [duplicate]
I have to be able to parse JSON strings containing arrays with VBScript. I've been using MSScriptControl within a function to create an object that I can then reference in the VBscript. This has ...
0
votes
0
answers
32
views
Encountering 400 BAD REQUEST Error in Flask App POST Request
I'm encountering a 400 BAD REQUEST error when running my Flask application. The error occurs when I send a POST request to http://127.0.0.1:5000/predict. The console logs show the following message:
...
0
votes
2
answers
81
views
Classic ASP and json2.js: how to access keys with special characters?
In this answer: https://stackoverflow.com/a/1021848/5280471 it is suggested to use a "language-wrapping" technique to implement JSON parsing by importing a json2.js JavaScript file like so:
&...
1
vote
1
answer
114
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
200
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
647
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
251
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
49
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
54
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 ...
-2
votes
1
answer
88
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
216
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 ...