jscript

How do you suppress script errors in HTAs?

I have an HTA that loads up an external webpage inside a nested IFRAME. This webpage (which I don't have control over) throws an "Access Denied" error in my HTA asking the user if they "want to continue running scripts on this page". What I want to do is have my HTA suppress all scripting error messages regardless of where they originate...

jscript+wsh can't launch notepad.exe, vbscript+wsh can. Why?

Never mind, I solved it. It should just be <a href="#" onclick="runnp()">Run notepad.exe</a> Original question: I'm trying to write a webpage that will launch programs on my local computer. How come only the vbscript version works? Nothing happens when I click the jscript link. <html> <head> <script language="VBScript"> Sub ...

IDynamicMetaObjectProvider dynamic objects and JScript.Net

I've got a class called EcmaEval which allows users of my application execute arbitary javascript. The implementation of the class is at the end of this question. I allow users to access an "environment" object which provides methods and properties which are useful for them to script with. The problem is that I need to expose a C# dynam...

Microsoft JScrtip runtime error using window.location in IE8

Hi, I'm having a weird error in my code. I'm getting an error: Microsoft JScript runtime error: object doesn't support this action. I'm using fullcalendar and on an event click I want to open the even details in the same window. Oddly enough, this works fine in Chrome. I also want to note that on an XP system it works fine both in IE8...

Unregistering or removing or undoing global Hotkey setting leftover from testing jscript in wsh

Below is some jscript code that I modified from the example code at http://msdn.microsoft.com/en-us/library/aew9yb99%28v=VS.85%29.aspx : // Code snippet to create a desktop link: var WshShell = WScript.CreateObject("WScript.Shell"); strDesktop = WshShell.SpecialFolders("Desktop"); var oShellLink = WshShell.CreateShortcut(strDesktop + "\...

FileSystemObject

My script fly with IE8 when I instantiate the file system object: var fso = new ActiveXObject("Scripting.FileSystemObject"); alert("does not reach this point"); Any ideas? ...

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

Hi 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)" . Shell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner\Default") How to read it? ...

RadEditor and document.ready

document.ready is not working in RadEditor, when i use the following jquery code <script> $(document).ready(function() { $("#accordion").accordion(); }); </script> It shows as error in RadEditor ...

How to convert an image file to BMP programmatically using native Windows XP capabilities?

Is it possible to convert an image file to BMP format using WindowsXP's native libraries and scripting capabilities? I'm talking about WSH, JScript, VBS, etc... C++ is also good for what I need if it can be compiled with Dev-C++ ...

how can I get the value of %APPDATA% using JScript?

Hi, how can I get the value (path) of %APPDATA% in Micorosoft JScript? ...

How to get the main window handle of a process using JScript?

Is there any method in JScript to get the handle of the main window of a process by providing the process name? The Process.MainWindowHandle property works only in JScript .NET. Is anything similar available in classic JScript? ...

Why is this C# COM class usable from VBScript but not JScript?

Consider the automation-compatible COM library in C#, given below. It follows a common COM pattern of having a visible factory coclass FooFactory implementing ICreateFoos which creates an object of type IFoo. FooFactory is the only coclass in the type library. (The factory pattern is particularly useful with COM, as it does not allow for...

Signing my assembly with a strong name stops it from working

A colleague of mine created an assembly in VB.net for use with JScript via COM interop. The assembly used to work fine, but we signed it and now it only seems to work on Windows 7 machines. I've tested 2 Windows 7 machines and 2 Windows Vista machines. When we signed the assembly and we try to instantiate the ActiveX object in JScript...

HTML5 + Jscript with JQuery, setInterval problem

Please can someone tell me why this isn't working before I defenestrate everything on my desk. I have the following html document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html";...

catching exceptions in Javascript thrown from ActiveX control written in C++

I've written an ActiveX control in C++ that throws (C++) exceptions out when error conditions occur within the control. The Javascript code that invokes the object representing an instance of the control is surrounded by a try - catch block: try { var controlInstance = window.controlInstance; ... perform operations on controlIn...

jQuery call followed by clicking accordion control fires Ms Jscript error

Hi. I have jquery modal that works perfectly fine. But after closing this modal and clicking on accordion control(MS ajax) fires Jscript runtime error Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'AjaxControlToolkit.AccordionSelectedIndexChangeEventArgs' cannot be converted to type 'Sys.Ca...

"Microsoft JScript compilation error: Expected ';'" Invoking ASMX Web Service

I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1), targeting .NET 3.5. Startup page is a dumbed down ASPX page with 4 text boxes, a button, and two JScript functions: An OnLoad handler for the body. This function just sets the values of the text boxes to certain dates and times for testing. An OnClic...

show and hiding order list

String + if user click the + sign i want to show some oder list then String - If the user click the - sign i want to hide order list How to acheive this with javascript , not using ajax , jquery ...

Javascript: remember selected range of a text

Hi, I am trying to find a way to remember/store a JScript textrange and then apply it back to a text and convert it into a selection. An example: in an iframe which is in "designmode" and contains the text "This is text inside the frame", the user hilights/selects "is text". I can read that selection by using all the available range m...

[JScirpt] How to Check if an user account exists or not (on local machine) in windows?

I am trying to verify whether a particular user exists on the local computer. The one solution that I can do is parsing the output of command Net user . But is there any better solution than this? ...