jscript

Jscript .Net and PDF Duo - How to Import DLL?

I have an winform application that retrieves some html. I'm trying to convert the html string to a pdf. This is the first time I've tried using an 3rd part library before and I cant seem to get it right. I'm using /r:pdfduo-net.dll jsc option and my import statement is below: import System; import System.Text; import System.Data; impor...

Setting a timeout for ServerXMLHTTP request

Does anyone know how to set up set up a default action for when a ServerXMLHTTP request times out? I'm using setTimeouts() to set the time out options according to the MSDN site. Ideally I would like to initialize the request again from the beginning or refresh the page should it time out. I'm using classic asp and jscript. Here's my...

WSH / JScript to start and stop services based on time?

Hi all, Just looking to see if my assessment is correct on the easiest way to do this. Background: we have a software suite which we're running via services. The services need to be shut down between 10pm and 6am. We also need to check every 10 min to recover the services in case they've gone down when they were supposed to be up, and...

Execute href of an anchor, but not "onclick" of underlying DIV?

See the code/HTML snipped below. I have an anchor with an "href" which is inside a DIV with an "onclick" event handler. If I click the anchor, the browser opens a new tab and the "onclick" gets executed. In case the user clicked the anchor, I want to supress the execution of "onclick". Returning "false" in an onclick of the anchor pevent...

Help passing XML String to RecordSet

What I would like to do is dump an XML String into RecordSet. The problem I am having is that the code seems to work fine if I saved the XML String first to a file and then read from the file which I think is redundant. However, when I want to read from string, I get the error RecordSet cannot be created. Source XML is incomplete or in...

Using JScript determine if user has administrative rights

I'm building a "diagnosis" page that determines various settings on a client's environment to help diagnose setup and connection issues. (e.g. cookies turned on, popups enabled, etc.) For a part of this page I'd like to check... if the browser is Internet Explorer, if the user has administrative rights or not... as they will be needed t...

OnClick callback thinks it's a javascript function?

I'm trying to use the OnClick callback to call a C# function, however javascript throws an error saying the function is undefined (even though it is in the C# code). This only happens if I add the control via Controls.Add in the page_load of the C# call behind section. In other words if I do this (in the Page_Load function): L...