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
10
votes
2 answers

How do I use jQuery in Windows Script Host?

I'm working on some code that needs to parse numerous files that contain fragments of HTML. It seems that jQuery would be very useful for this, but when I try to load jQuery into something like WScript or CScript, it throws an error because of…
Vivian River
  • 31,198
  • 62
  • 198
  • 313
9
votes
2 answers

Scripting Git Commands in Windows

I have a few git commands I would like to automate in a restrictive windows environment. I find myself running these same commands over and over, executing in Git Bash. $ git cd "R:/my/directory/repo" $ git pull $ git checkout "MyBranch" $ git…
o.carltonne
  • 365
  • 1
  • 3
  • 13
9
votes
2 answers

Create COM/ActiveXObject in C#, use from JScript, with simple event

I'd like to create a COM object in C#, and use it via IDispatch from JScript. That part is pretty simple. I also want to implement simple callbacks on the COM object, similar to the event exposed by the XmlHttpRequest object that is usable in a…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
9
votes
4 answers

How can I save an MSXML2.DomDocument with indenting? (I think it uses MXXMLWriter)

I have an instance of MSXML2.DomDocument. I wave to save it, with indenting. This code works, but does not indent: var dom = new ActiveXObject("MSXML2.DomDocument"); // fiddle with dom here dom.save(filename); I think I can use an MXXMLWriter…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
8
votes
6 answers

What does ‘::’ (double colon) do in javascript for events?

I saw this code and I'm scratching my head trying to decide how it works.