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

Can I have a COM interface in a service to be called from Windows Script Host?

My goal is to create a COM interface in my Windows local service, written with C++/MFC, whose methods could be called from a Windows Script Host JScript code running under a logged in interactive user account. For instance, if I have a test.js that…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
-3
votes
1 answer

JS file doesn't work

Here's the code in my JS file: function arrayContains(array, value){ return array.indexOf(value) > -1; } var possibleOptions = ["male", "female", "m", "f"]; var gender = prompt("What's your gender?",""); while(!arrayContains(possibleOptions,…
Aviv Cohn
  • 15,543
  • 25
  • 68
  • 131
-3
votes
2 answers

Show/Hide specified number of table row

This is the HTML table:
Auto
Albert
  • 15
  • 1
  • 7
-3
votes
1 answer

How to load php file to specific place on site?

I have menu that is included and many other modules (leftside, rightside, content ect.). I want to load some PHP page to specific place (content) on link click.
Sasa Jovic
  • 33
  • 1
  • 10
-3
votes
1 answer

is it possible to have javascript run after a plugin

I have a plugin that update some custom fields and I want to run some javascript to validate the fields and present the user with an alert message if required.... is this possible (dynamics crm 4) Thanks, Tim
Tim Windsor
  • 319
  • 1
  • 5
  • 17
-4
votes
1 answer

Making onClick event on Cascaded DIVs

I'm trying to do some cascading html DIVs but was not able yet. ======Concept====== 1 - How should it be at first: | ParentDiv | 2 - After user clicks on ParentDiv: | ParentDiv |     | ChildDiv1 | | ChildDiv2 | | ChildDiv3 | ======Concept…
FFFFFF
  • 1
  • 2
-4
votes
2 answers

remove characters begin and end of string

I have $45.00 as string and need to get 45 out of that. following is working... How do I write this in one line? var x= "$45.00" ,cents =/\.00$/; var z= x.replace(/^\$/,''); z = z.replace(cents,'');
1234
  • 241
  • 1
  • 3
  • 15
-4
votes
1 answer

jscript code to C#

Any good jscript code converter to C# I want to convert this piece of code into C# This code is for generating admin password base from device MAC Address