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
0
votes
1 answer

Use FiddlerScript's OnBeforeResponse to change properties of elements in an array

I am trying to write a FiddlerScript to modify the properties of a JSON array that is returned from the server. Here is what I have tried so far: static function OnBeforeResponse(oSession: Session) { if (m_Hide304s && oSession.responseCode ==…
Greg Thatcher
  • 1,303
  • 20
  • 29
0
votes
1 answer

Parse text file as list of variables?

I have a text file (currently in CSV format) as follows: RACE,"race_human" GENDER,"male" AGE,30 ALIGNMENT,"align_lawful_good" DEITY,"Old Faith" However, I want to interpret the text file as if it were a list of variables. I.e.: var RACE:string =…
posfan12
  • 2,541
  • 8
  • 35
  • 57
0
votes
1 answer

JScript.Net compiler error

I create a .js file containing print("Hello World!"); I save it as hello.js I open the Visual Studio 2008 Command Prompt jsc + Enter jsc \out:hello.exe C:\path\to\my\file.js + Enter I get an E_ACCESSDENIED error: what could it be? Thanks!
vyger
0
votes
1 answer

JScript.NET: Enumerating WMI collections

In JScript.NET the following snippet: wmi.js ------ var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2"), col =null, prc=null; col=wmi.ExecQuery("SELECT * From Win32_Process", "WQL",…
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
2 answers

Writing apps in JScript 5.5 instead of JScript.NET

As some of you may know JScript.NET adds quite a few features to the common JavaScript language... it adds some class syntax, some type identifier etc etc.. The main reason I use JavaScript is because I love how dynamic it is, nested function calls,…
Luca Matteis
  • 29,161
  • 19
  • 114
  • 169
0
votes
2 answers

Why does JavaScriptSerializer return the wrong answer when called from JScript.NET?

In ASP.NET/C#: <%@ Page Language="C#" %> <%@ Import Namespace="System.Web.Script.Serialization" %> <% JavaScriptSerializer jss = new JavaScriptSerializer(); string[] fruits = new string[3] {"apple","banana","crunchberries"}; string output =…
Robert Calhoun
  • 4,823
  • 1
  • 38
  • 34
0
votes
1 answer

MVC: Displaying dynamic forms based on URL arguments

I am trying to generate content within a view based on a URL parameter. For example: 10 companies, 30 users each A user from company Google clicks a distributed icon that opens www.****tickets.com/ticket/?c=Google A custom ticketing page with…
Sonny Childs
  • 580
  • 2
  • 13
0
votes
2 answers

How do I parse a JSON array response in JScript .NET 4.0?

I have a question about parsing JSON data with JScript .NET, 4.0. I am using Visual Studio 2005 running in Windows XP to make a Windows form (as opposed to a website). My RESTful API calls return JSON data in the form of an array of objects, for…
Bachmann
  • 1
  • 2
0
votes
1 answer

List sub directories of a folder in APPDATA using Windows JScript

I'm trying to edit a json file which is located inside a folder in AppData\Roaming. The file path is AppData\Roaming\Myapp\RANDOM_CRAP\settings.json RANDOM_CRAP is just a random folder name which is different for every machine. In order to open this…
user1555863
  • 2,567
  • 6
  • 35
  • 50
0
votes
1 answer

Fiddler: Is it possible to replace part of URL using OnBeforeResponse function?

if (oSession.HostnameIs("www.youtube.com") && oSession.oResponse.headers.ExistsAndContains("Content-Type","text/html")){ oSession.utilDecodeResponse(); oSession.utilReplaceInResponse("old string","new string"); …
jarid wilders
  • 25
  • 1
  • 7
0
votes
1 answer

Replace semicolon in Microsoft JSCRIPT

I need to remove semicolon from a string in microsoft JSCRIPT. var Test="{abcdef};" I need to remove the semi colon from the string Test. but it is throwing errror. I am using the following two ways to remove ";" from string 1) var reg= new…
0
votes
1 answer

How to consume a WCF service with Jscript.NET but not using any html? Lawson Smart Office Script

How do you consume a wcf service with jscript.net but not using any html? My wcf service is working fine and I am using it with other programs but I don't know how to reference it with soley jscript.net code. I am trying to write a script for a…
0
votes
0 answers

JScript runtime error when downloading file from server

I currently have a button on my aspx, when it is clicked, it calls a method to download a jpeg file from a server. The Jpeg file is a chart created with Infragistic. My current Download method is this: private void DownLoad(string pImagen) { …
user3642846
  • 31
  • 1
  • 1
  • 3
0
votes
1 answer

How to execute a sql query in jscript/jscript.NET

First at all sorry for my English, this is not my native language. So. I want to execute a SQL query in a script to get some data. I don't know if it's possible and if so, how to make it. To summarize : The script add a button in M3 Smart Office (a…
Paulter
  • 3
  • 3
0
votes
1 answer

python import .dll compiled by .net

i used jscript.net to create a .dll file. as a test, i can successfully call the function hello() in another jscript.net program, which compiled as .exe. BUT my question is: how can i call the function in python? this dll can be successfully loaded…
user3224611
  • 84
  • 1
  • 7