Questions tagged [jscript.net]

JScript.NET is a .NET programming language developed by Microsoft.

JScript.NET is a .NET programming language developed by Microsoft as a natural successor to Microsoft's Active Scripting language JScript, which, in turn, started life as an implementation of JavaScript.

More info: Wikipedia article

98 questions
156
votes
23 answers

Focus Next Element In Tab Index

I am trying to move the focus to the next element in the tab sequence based upon the current element which has focus. Thus far I have not turned up anything in my searches. function OnFocusOut() { var currentElement = $get(currentElementId); //…
JadziaMD
  • 2,690
  • 5
  • 31
  • 42
43
votes
12 answers

What are people using JScript.Net for?

I'm interested to know who uses JScript.Net and for what sort of applications. Whenever I'm reading MSDN .Net documentation, I always notice the JScript samples but in all the years I've been a C# dev I've never actually known anyone to use it. What…
Rob Levine
  • 40,328
  • 13
  • 85
  • 111
8
votes
7 answers

Can JScript.NET be used to script a .NET application?

Since MS appears to have killed Managed JavaScript in the latest DLR for both server-side (ASP.NET Futures) and client-side (Silverlight), has anyone successfully used non-obsolete APIs to allow scripting of their application objects with…
7
votes
6 answers

$Find returns null

I have the following JScript on a page and later
MikeT
  • 5,398
  • 3
  • 27
  • 43
6
votes
1 answer

Referencing and using JScript.NET "functions only" exe assembly

1. Compiled Assembly from JSC I've compiled what is intended to be client-side JavaScript using the JScript compiler (jsc.exe) on the server side in an attempt to make something that can be tested from a unit testing project, and maybe even…
John K
  • 28,441
  • 31
  • 139
  • 229
6
votes
1 answer

Debugging FiddlerScript

Does anyone know how to debug through FiddlerScript? I tried what seemed like the obvious thing to do: In the Fiddler CustomRules.js, insert this code: if (Debugger.IsAttached) Debugger.Break(); (and also at the top of the file: import…
LondonPhantom
  • 1,867
  • 3
  • 19
  • 26
5
votes
2 answers

How to call C# from JScript.net?

I read that, for the newest Java, Javascript on Java can call or import java packages easily. In the newest .NET, can JScript.net call C# functions easily? For details, I am asking not about compiled JScript.net code, but about non-compiled…
seven_swodniw
  • 881
  • 3
  • 9
  • 15
5
votes
2 answers

Programmatically change ListView Style of selector

I am doing an Addon to a Windows WPF application. Therefore I can access the ListView with programming but not edit the WPF source. To add special formatting for the ListViewItems depending on the data I created my own StyleSelector class and…
ZoolWay
  • 5,411
  • 6
  • 42
  • 76
4
votes
2 answers

ListView programatically added columns shows type of item

I got a ListView in another assembly and want to add a column to it. The items in the listview are objects of a class in that assembly. When I add a column like this var col : GridViewColumn = new GridViewColumn(); col.Header = "Header…
ZoolWay
  • 5,411
  • 6
  • 42
  • 76
4
votes
1 answer

JScript .NET error

I'm trying to compile the program listed here: http://www.webreference.com/js/column117/index.html However, every time I try I get an error: error JS1259: A referenced assembly depends on another assembly that is not referenced or could not be…
posfan12
  • 2,541
  • 8
  • 35
  • 57
4
votes
2 answers

Using JScript.NET today?

Is it a good idea to use JScript.NET these days? Is there any IDE or text editor for JScript.NET? Is there any modern programming language on the CLR that has eval on language level (without the need of external libraries)?
user2102508
  • 1,009
  • 11
  • 23
4
votes
3 answers

Sharing JavaScript code between .NET desktop and browser

I have a set of core, complicated JavaScript data structures/classes that I'd like to be able to use both in the browser as JavaScript and run on the desktop with .NET 3.5. Is it possible to compile web-friendly JavaScript into assemblies that my…
Wayne Kao
  • 8,125
  • 5
  • 30
  • 25
4
votes
1 answer

C# Equivalent of JScript's new ActiveXObject

I am trying to use the functionality of new ActiveXObject() found in JScript.NET in C#. How can I do this? And don't say that anything you can do with COM objects can be done in C#. If I wanted to do it that way, I already would have.
Bob
  • 185
  • 1
  • 4
  • 13
3
votes
2 answers

JScript.NET vs ECMA

I am programming a small console app that is an intelligent front-end to a set of batch files with ungodly parameters. I have decided to use JScript.Net for this though it may be ill advised compared to C# because I am finding the flexibility of it…
Mark Robbins
  • 2,427
  • 3
  • 24
  • 33
3
votes
1 answer

How to implement IObjectSafety programmatically in JScript.NET

tldr; How to mark a JScript.NET dll as safe for scripting? Consider this JScript.NET library (helloworld1.js): package helloworld1{ class test1 { public function test1run(){ return 'This is a string returned from helloworld1.dll'; } …
Tony
  • 1,811
  • 1
  • 20
  • 27
1
2 3 4 5 6 7