1,179 questions
0
votes
1
answer
64
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");
...
0
votes
0
answers
34
views
Blazor Server .NET 7, anchor navigation not working on Razor class library page, works on pages in main app
Blazor Server on .NET 7, implemented anchor navigation using the code from text verbatim. This works great for pages in the main app. When applied to pages located in a Razor class library, navigation ...
1
vote
0
answers
272
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
24
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
65
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
30
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
76
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
103
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
190
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
635
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
235
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
47
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
42
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
84
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
206
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
45
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
90
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
34
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
92
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 ...
1
vote
1
answer
28
views
Function OnClick doesn't work inside div class blog-slider__img
I would like to know if anyone can help me, when I place the button on this div, it is impossible to click on it to make it play the audio.
enter image description here
What am I doing wrong?
INDEX
&...
0
votes
1
answer
284
views
Display cmd data into HTA and the command prompt window
I am stuck on an issue trying to get away from the cmd popup and have all the data from the command to appear in span tag. I know just enought to get the command to work but not sure how to make it ...
0
votes
1
answer
570
views
How to show/handle errors thrown while running JavaScript flow actions in Power Automate Desktop?
The documentation about script actions states, that a variable ScriptError is produced:
https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/scripting#variables-produced-2
...
1
vote
1
answer
5k
views
How to return result from JavaScript action in Power Automate Desktop?
If I use a flow action Run JavaScript function on web page in Power Automate Desktop, I am able to use following code:
function ExecuteScript() {
alert('foo'); // shown as pop up ...
-1
votes
1
answer
152
views
Using a specific User/Domain in a Msxml2.ServerXMLHTTP request in classic ASP [duplicate]
We have a client we need to communicate with and their API page only supports NTLM authentication.
Our site runs classic ASP (jScript) so forgive that the syntax is slightly different than the what ...
-1
votes
1
answer
113
views
Wave effect on triggering the section
I would like to make an animation to my cards in reference section. I want to make an effect of kinda waves to the half of card like i "draw" on attached image when you enter the section of ...
-1
votes
2
answers
47
views
How to match text string before and after a short hyphen with space [duplicate]
My heart will go on - Celine Dion
My heart will go on - Celine Dion
My heart will go on - Celine Dion
My heart will go on -Celine Dion
My heart will go on- Celine Dion
My heart will go on-...
0
votes
1
answer
205
views
Change image on click then back to original image on another image click/html jscript
First of all, I have basically no knowledge on how to write JavaScript, so my problem might be quite simple to answer, but I've done some research and I didn't find anything yet.
I'd like to know how ...
0
votes
3
answers
662
views
How to get value out of html page with javascript or windows batch
need to extraxt a value(dip) out of a html
</span><span class="pron dpron">/<span class="ipa dipa lpr-2 lpl-1">buːm</span>/</span></span></...
0
votes
1
answer
40
views
Define condition hightlighting in correct cell
function myFunction12(){
var table1 = document.getElementById("table1").rows;
var y31;
for(var i = 2; i < table1.length; i++) {
for(var j = 4; j < 5; j++) {
...
1
vote
1
answer
455
views
Get row and column from excel or sheet A1 notation using regex
I want to convert the excel cell range string to row and columnnames
If AS31 is input the expected output should be
col = AS and row = 31
If 31 is input, then output is
col = null and row = 31
If A is ...
0
votes
0
answers
87
views
How can I pass values from JS to JSCRIPT dynamicly (it drives me nuts)
My home automation system only allows communication through JSCRIPT that runs on the SPS embedded IIS as ASP code. The old web interface was just on HTML and JSCRIPT. I need to move to HTML, CSS and ...
-1
votes
1
answer
109
views
How to execute Excel macro module in JSCRIPT
How do I execute Excel macro module in JSCRIPT (not JAVASCRIPT and VBSCRIPT)?
Double-clicking the jscript file causes the Excel macro module to run but it does not work.
I wrote jscript codes like ...
0
votes
1
answer
48
views
How to remove specific object from object array in localStorage
Can anybody advise me how I should go about adapting this code to remove the found object within an array of objects in localStorage.
So far everything I have tried results in either only the 1st ...
1
vote
1
answer
140
views
How to access array elements of SAFEARRAY from MS JScript?
A COM object lives in a DLL. Its IDL looks roughly like this:
[
object,
uuid(51EB4046-221E-45EF-BD63-0D31B163647C),
oleautomation,
dual,
pointer_default(unique)
]
interface ...
0
votes
2
answers
169
views
localStorage Array Objects - How to check is Object Key Value exists
How would i check to see if the ID exists within the localStorage object key array
i am currenty using this and it does not work
if (favorites.includes(theid)) { alert('You Allready Added this Listing'...
0
votes
1
answer
477
views
Search bar for external API in ReactJS?
My error is: 'search' is assigned a value but never used. But I don't know if it's needed and if so, where to place it.
Everything works and the search bar appears above my table, but it seems like my ...
0
votes
1
answer
47
views
Module not found: Can't resolve './AppAPI' in project folder
I have done everything right when setting up my react app and for some reason I'm getting this error.
All my code is in a .js file called App.API.js which is located in the src folder.
The error is ...
3
votes
1
answer
2k
views
Windows 11 22H2 has a different way of using the JS engine?
We has a solution built on a WebBrowser that will use the JS engine. After upgrading to Windows 11 22H2, we found that the solution behaves differently from before. We did some research, and then ...
1
vote
0
answers
64
views
javascript class in hta [duplicate]
I am making a hta app for a home project and I would like to use javascript classes. Is this possible? If a use the basic example I find on google it gives a syntax error in hta. works as a html ...
-1
votes
1
answer
59
views
Struggling to call a Jscript function within jquery
I have a small MVC5/C# Web application. In short, users will select a location from a dropdown ("#UnitList"). This fires the jquery event, to populate the next dropdown ("#CheckItem&...
0
votes
1
answer
102
views
How can I insert social media URLs in following code
I have following code in my WordPress site (footer). This part is about the Social Media Icons. here how and where I can insert URLs to each Social Media icons ?
[ct_icon icon="%5B%7B%22icon%22%...
0
votes
1
answer
142
views
php table colour rows group by date
New to stackoverflow.
About 5 years ago I built a booking site and haven't touch php since, so very very rusty. All is working well with it. However I want to make some updates. As part of the update ...
0
votes
1
answer
786
views
Python Flask wtforms disable form input field if checkbox is ticked
Im struggling to get this to work.
I've got a python flask form that has a check box and an input field. I want to disable the input field if the check box is ticked. I've tried using a script in the ...
0
votes
1
answer
59
views
bootstrap not correct with hamburger menu
I am trying to pick up my coding after a short break and now i stumble upon the problem of the hamburger menu not collapsing and expanding. keep in mind this is work in progress i have to source file ...
1
vote
1
answer
43
views
Capturing hyperlinks conditionally in regex captures too much
I'm attempting to replace specific hyperlinks in text with the following expression:
<a .*?href=(['"]?).*?\/?download.aspx\?myid=\{?([0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]...
1
vote
1
answer
83
views
set batch variable from WSH script
I am trying to run a batch file that gets a variable from WSH script.
When I run the script I get the correct output but I can't seem to set it to a variable
@if (@codesection == @batch) @then
cscript ...
0
votes
0
answers
31
views
How to encode a string in base64 in JScript [duplicate]
Well, i think the title is pretty clear, how to encode a string to base64 in JScript?
While researching online i found this:
How to decode a Base64 string in JScript
Yeah, intresting (for Decoding), ...
2
votes
1
answer
961
views
How do I send Request in Robot Framework It Gives 500 server error
//How do I send Request in Robot Framework It Gives 500 server error
//This is the request body that I want to send
{
"destinationFaxNumber": "9546599326",
"...
-1
votes
1
answer
264
views
To find how many characters are remaining from a total of 140, slice function
To do that I have written code below
var tweet = prompt("compose your tweet");
var tweetcount = tweet.length;
alert("you have written " + tweetcount + " characters you have &...
0
votes
1
answer
194
views
Html button not responding
I'm creating a text adventure game that involves the use of buttons changing text. This was working up until a few minutes ago and now it has stopped. Here is the code:
<button type = "button&...