jscript

jquery function call with parameters

Hi a newb question: I have a table with a bunch of buttons like so: <tr class="hr-table-cell" > <td>REcord 1</td> <td> <INPUT type="button" value="Approve" onclick="" /> <INPUT type="button" value="Reject" onclick="" /> <INPUT type="button" value="Delete" onclick="fnDeletePpAppl(222445,704);" /> <...

Windows Desktop Gadget issue with IFRAME?

We're doing some preliminary explorations of Windows Desktop Gadgets here at our company and we've decided to try our first one simply by embedding an IFRAME inside the gadget HTML and pointing it to a web page we already have hosted on our intranet. The page on our intranet includes JQuery (whose calls seem to be working inside the pag...

jQuery "Microsoft JScript runtime error: Object expected"

I have the below code that does not seem to work at all :( I keep getting: Microsoft JScript runtime error: Object expected The error seems to occur when the timeout is done. So if I raise the timeout with 10 seconds the error holds for another 10 seconds. I want to be able to update the number of friends online async. The number is...

how can I read a binary file with in javascript (Cscript.exe)?

I think I can't read a binary file with the Scripting.FileSystemObject class. Can I do it with ADODB.Stream? Something else? I want to get an array of bytes. thanks. ...

How do I add the following jscript and css code to my page

Hi every one, I'm a bit new to joomla and i'm, I'm trying to add the following function to my joomla site script Lights Out – Dimming/Covering Background Content with jQuery this function can be found on the following link http://buildinternet.com/2009/08/lights-out-dimmingcovering-background-content-with-jquery/ I have tried to inclu...

Reading a Windows 'binary' float into a ASP jscript variable

I need to read files produced by a legacy Windows app that stores real numbers (the 8-byte "double" type) in binary - i.e. as a packed array of 8 bytes. I can read the 8 byte group OK but how can I present it to my ASP JScript code such I can get the real number back again. Or to put it another way: Say a file was produced by a Window...

Conditional compilation is turned off

Hello. I get a javascript error: Conditional compilation is turned off I found this link to fix : http://msdn.microsoft.com/en-us/library/5y5529x3(VS.90).aspx But after adding this field /*@cc_on @*/ I get new, another javascript error: Expected ')' How to fix it? Thanks ...

SecurityPermission error when instantiating media player

I'm using a Class Library exporting a function via COM. When calling this function from a JScript, it fails with the following error: Error: System.Security.Permissions.SecurityPermission Code: 8013150A Here's the C# code of my library: [ComVisible(true), Guid("B40EFE10-FC1B-43A0-ADA1-C923935F3537")] public class ExodusGadget { ...

MSMQ.MSMQQueueInfo PathName Not Accepted

I am using MSMQ.MSMQQueueInfo with jscript on Windows 7 (the latest MSMQ version). This is being run on a domain joined computer. For some reason unknown to me, it just will not accept the PathName I give it (which is in an acceptable format). Here is the code: var qi = new ActiveXObject ("MSMQ.MSMQQueueInfo"); qi.PathName = "FormatNa...

Visual Studio Packaging: Another version of this product is already installed

Hi All, I have a msi created for a project which uses C# & Jscript. version-1.0 is currently public. I want to release a bug-fixed version v-1.0.1 of this package but while testing it, I am getting "Another version of this product is already installed Installation of this version cannot continue.To configure or remove the existing vers...

contain new elements of an "instance" in javascript

Hi, so I know there are tons of ways to simulate inheritance and other OO features. I have chosen one to use for my project and am wondering if I can create an instance and add stuff to it and keep it contained (within braces). Consider the following: function BaseClass(){ <this.stuff here> } function SubClass(){ this.superClass =...

Embedding Javascript in My Application

I want to embed Javascript in my own application. I know I can do this with all the open source Javascript engines like V8, TraceMonkey/SpiderMonkey. But, scanning through the source code learning how to embed them is not easy given most are not well documented. Is there anything native in Windows? Is the JScript engine already been ...

Calling AppActivate on a word 2007 window in Windows 7 gives it focus but doesn't bring it to top of stack

I'm trying to manipulate Word from an HTA file application. Currently, when I open word, it opens underneath my application. I'd like to open it on top. I've tried using the following JScript to give Word the focus: wshShell = new ActiveXObject("WScript.Shell"); wshShell.AppActivate(doc.windows.Item(1).caption); This works, and word g...

How do I get my Jscript Debugger to Attach to a Process?

I get the following JScript Debugger error when I click on the Start Debugging button in the Script tab of the Developer Tools (F12) window: Unable to attach to the process. Another debugger might be attached to the process. Closing all browser windows and launching ie again has no effect.Ending the process tree in Windows Task Man...

How to reference a JScript file from another one?

I am writing some server-side scripts using JScript and WSH. The scripts are getting quite long, and some common functions and variables would fit better in a general library script which I included in my various script instances. But, I cannot find a way reference one JScript file from another. For a moment, I though reading the file c...

Why eval() isn't working here to deserialize such a simple JSON object?

Hi, I am trying to use eval() function to deserialize this JSON text by using eval function. var personJSON = {"FirstName":"Burak","LastName":"Ozdogan","Id":"001" ,"Department":"Information Technologies"}; var personBurakOzdogan = eval('(' + personJSON + ')'); But I am getting this error: *Microsoft JScript compilation err...

calling Javascript at page load

I have a Javascript. I want to call only at page load. I dont want to call at postbacks.. (Asp.net 3,5) ...

How will Chakra Jscript engine Exposed to Scripting Hosts?

Anybody has experience with the upcoming IE9 Chakra engine? I am currently considering whether to incorporate the Microsoft's JScript engine through the Window Script Interface or using one of those open source javascript engines (tracemonkey/v8 etc). The JScript engine is a bit too slow and Chakra looks promising. But I am not sure i...

How can I gain access to an asynchronous response in synchronous code?

I've got a web page where I need a user to click the save button to save the content of the form back to the web server. Part of the save is a check of items which may require a prompt to the user that allows them to confirm, edit and reorder items in a javascript popup. If the prompt is required, I need to be able to access the respon...

How to show a popup without a browser

I need an "alert" type feature to troubleshoot an error. I am not using a browser and using javascript as windows administaration purposes. So is their a way to view a varibales value if I am not using a browser? ...