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 is a scripting language based on the standard, created by Microsoft and implemented in a range of environments, including:

JScript is not to be confused with JavaScript () — although they are both implementations of the ECMAScript language — because, often, people refer to JScript when discussing client or server scripting outside of a web page. As such, you would expect the tag to accompany , or questions. was named after JScript, but it is not the same.

JScript supports several unique features such as conditional compilation, COM object instantiation and a method to force garbage collection.

Official Documentation

1180 questions
3
votes
1 answer

Is JScript/WindowsScriptHost missing Array.forEach()?

I write JSCript and run it with the WindowsScriptHost.However, it seems to be missing Array.forEach(). ['a', 'b'].forEach(function(e) { WSH.Echo(e); }); Fails with "test.js(66, 2) Microsoft JScript runtime error: Object doesn't support this…
user3331950
  • 119
  • 1
  • 6
3
votes
1 answer

how to read (Default) value in Registry Key in VBScript/JScript

I can read the value of the key name "UpdateCheck" under HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner\ with Shell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner\UpdateCheck") But I cannot read that of the key name "(Default)" .…
tester
  • 31
  • 1
  • 2
3
votes
2 answers

Upgrading IIS/Classic ASP Javascript/JScript Scripting Engines (to Chakra?)

Microsoft are quoted as saying that javascript is now a first class citizen in Visual Studio and the "Universal Windows platform" but I have yet to find a way of upgrading the decade+ old JScript engine used in IIS/Classic ASP script. So, my…
CodaCoder
  • 31
  • 5
3
votes
1 answer

V8Engine.Execute returns 'undefined', whereas Microsoft.JScript's eval returns a value

I am looking to replace the Microsoft.JScript engine in our C#.NET 4.0 program with a V8.Net engine in order to be able to execute passed in javascript functions. The program runs fine and correctly executes a number of scripts until it hits the…
Josh Leland
  • 98
  • 10
3
votes
1 answer

Firebase - 'pushWithPriority' - and validation

I really want to 'push with priority'. But this doesn't exist, so I am planning on doing a push with out parameters, then a setWithPriority with the returned reference. Similar to the example in the docs. var messageListRef = new…
pperrin
  • 1,487
  • 15
  • 33
3
votes
2 answers

Searching the Registry for a key - JScript

Is there a way to search the Registry for a specific key using Windows Scripting Host? I'm using JavaScript (Jscript/VBScript?) to do so, and the msdn Library doesn't mention any such method:…
rkhj
  • 91
  • 2
  • 5
3
votes
3 answers

How to add multiple dropdown form with submit button combine value and go to url

I want the submit button to act on the combined values in the two didferent dropwdown menu's in the form. For example... west and winter is a different URL then west and summer I'm struggeling for days to make this work. I feel some how this must be…
3
votes
0 answers

What is "JScript Thunk Assembly" assembly?

For many of my ASP.NET websites I've used reflection to get version information about the loaded assemblies, (I used this for statistics and deployment purposes). On a few of the websites I've noticed an assembly called JScript Thunk Assembly, but I…
leekelleher
  • 427
  • 1
  • 4
  • 12
3
votes
1 answer

EA Scripting is not working

I have been using scripting in EA extensively for a couple of years. This morning, I went into EA to start building a new script, and scripting no longer appears to work. I tried writing 'Hello World' and even wrote a script with syntax errors. It…
Chris
  • 694
  • 3
  • 18
3
votes
2 answers

Setting URL of an HTML Web Resource in Microsoft CRM 2011

I have placed an HTML Web Resource on my CRM Contact Form and I want to dynamically change the URL of this HTML Web Resource. How can I set the URL of this HTML Web Resource using jScript's XRM properties? Basically I am looking for something like…
3
votes
2 answers

What is the name of this function declaration syntax only working in JScript (IE)?

I recently came upon this code on the web : function window::onload() { alert('onload!'); } This (strange) syntax is only working in Internet Explorer (IE 8 in my case) and I wasn't sure of how it was called so I could search for it. I simply…
Philippe97
  • 380
  • 4
  • 9
3
votes
1 answer

How can I search and replace, using regex, within the results of a previous search?

Thanks for taking the time to read this and apologies right off the bat if this is slightly confusing, remedial or has been previously asked (extensive searching, limited results). I'm editing using archaic software, HomeSite 5 if you're familiar,…
3
votes
1 answer

TestComplete Objects - Enumerate properties

For the TestComplete objects of processes, windows and controls on the screen - is there a way to enumerate and print out all the properties. I tried the following code and I get a runtime exception:- var deskObj = Sys.Desktop; //TC Desktop…
Hari
  • 5,057
  • 9
  • 41
  • 51
3
votes
2 answers

Can the header element in the Navigate() for InternetExplorer.Application be used to specify a proxy?

I've been trying to find a solution to the problem of having system-wide proxies in Windows when I only want things to change at the application level. I've been trying to find a working example, in JScript, of calling InternetExplorer.Application's…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
3
votes
2 answers

Show loading gif while waiting for ajax response

I have a seat chart. When i click a seat, i want to show a loading gif. Seat chart comes from svg document. Seats are svg elements. When ajax response returned, i want to hide loading gif. I wrote code below but it doesnt work.
ebruszl
  • 469
  • 4
  • 11
  • 27