<script type = "text/javascript">
var First_Array = new Array();
function reset_Form2() {document.extraInfo.reset();}
function showList1() {document.getElementById("favSports").style.visibility="visible";}
function showList2() {document.getElementById("favSubjects").style.visibility="visible";}
fun...
I'm writing a JScript program which is run in cscript.exe. Is it possible to run a commnad line command from within the script. It would really make the job easy, as I can run certain commands instead of writing more code in jscript to do the same thing.
For example:
In order to wait for a keypress for 10 seconds, I could straight awa...
I just recently started using jQuery on my classic ASP site. I am planning on rebuilding a page that has 4 sections and each section displays multiple rows and columns. JSON can help me here but all the examples that I have seen are VBScript related. This site is JScript and I am looking for some examples or tutorials using JSON, JScript...
I'm creating a slideshow using javascript that fades images. Awhile back, I discovered that to change the opacity of an image, I have to use a different API, depending on whether the page is viewed in Firefox or IE.
Firefox:
img.style.opacity = [value 0 to 1];
IE:
img.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity= [...
So let me apologize right up front. I'm not a PHP programmer, I'm a C# programmer. But I have to support a website that was written for my company in PHP and is falling apart. So here's my simple question:
I have the following code:
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
url = "./viewInvoiceXML.php?soh_...
I am using the ScriptControlClass, for reference and I thought JScript was case sensitive... However, my user base has surprised me... I have several methods I have provided the users in all upper such as: IF, EMPTY, AGE, PARSE, etc...
Well, today a user filed a defect that issampgroup was not working. I investigated and informed the...
I have a variable named age and a function named AGE. Ignore the problem I am having with JScript beign case insensitive at the moment, i.e. age(dob) and AGE(dob) both work...
Why does JScript try to use the age variable as a function? My best guess would be that jScript is treating the function declaration as both declaration and exp...
I am writing a JScript script with iTunes COM api for updating ratings and played count from the iPod database back into iTunes Library. In order to do so, the script should be able to recognize the songs that were transferred from this iTunes Library, so that it can read the ratings data for the track on iPod and update the correspondin...
Are there any DHTMLX users out there?
We have an app that is being developed that renders fine in Firefox and Chrome, but is suffering greatly under IE. Any thoughts?
Copied from IE detailed error diaglog box:
Webpage error details
User Agent: Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1....
How do I access an enum that is defined within a COM interface? Specifically, I've created a new instance of an iTunes.Application:
var iTunesApp = WScript.CreateObject("iTunes.Application");
... and I want to be able to use certain enums defined within the COM
iTunesTrackCOM.idl File Reference
[...]
Enumerations
[...]
...
I am trying to write a WSH logon script. Administrators throughout the company need to be able to customize the execution of the script, and execute additional scripts, for specific locations and users. In order to make their jobs easier, I would like to provide an API that the administrators can access in their scripts. If I write my AP...
Microsoft JScript runtime error: 'this.Plugins[...]' is null or not an object
coming from this code:
var xVal = xVal || {
Plugins: {},
AttachValidator: function(elementPrefix, rulesConfig, pluginName) {
if (pluginName != null)
this.Plugins[pluginName].AttachValidator(elementPrefix, rulesConfig);
else...
Hi, I kwnow how to retrieve the version of an exe using jscript, but I can't find any way to retrieve other info like "Company", "Internal name" or "Product name".
function version_of( file_name )
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f;
try {
f = fso.GetFile( file_name )
} catch( e ) {
...
I am looking for a way to launch multiple scripts in a separate process from my main script, but in such a way that they can access copies of variables I've declared. Consider the following example:
Serializable.js:
// Represents serializable data.
function Serializable() { /* ... */ }
SecondaryScript.wsf
// Serializable is not defi...
I have some example jscript code and i would like the function to be static.
package pkg { class b { public function increment(x) { return x+1; } } }
//in C#
methInfo.Invoke(null, params); //error bc of null. I dont know how to create class b ATM
//i dont need b so i would like to call the func like this. How do i make increment static...
I need help with this...
I've found a javascript app online in which I want to insert into powerpoint for a presentation...
Vb support jscript
Can i convert Javascript to Jscript some how? or can someone help me with it....
If wanted just ask for code or site
...
I'm trying to output a PDF using server side javascript (ASP). The current method I'm using is:
xfile=Server.MapPath(lib.fso.GetTempName())
xf=lib.fopen(xfile,"wb");
lib.fwrite(xf,this.buffer);
lib.fclose(xf);
outB = Server.CreateObject("ADODB.Stream")
outB.Type = 1
outB.Open()
outB.LoadFromFile (xfile)
Response.BinaryWrite(outB.Read()...
Is there a way to touch a file (i.e. change its modification time) from a JScript? There is a DateLastModified property in FileSystemObject (ActiveXObject), but it's read-only.
Couldn't even find a clear "no, you can't" on this...
...
This question is in follow up to this one: write binary data using JavaScript on the server.
The problem there with just using Response.Write to write the string is that the string contains a null character which JavaScript recognizes as the end of the string.
The string I'm trying to write starts with the following (written here in...
While trying to port and generally playing around with some non-browser code, I came across getters and setters that looked like normal object properties. Something like this:
js> var o = {
a: 4,
get b(){
return this.a + 3;
},
set b(val){
this.a = val - 3;
}
};
js> o.a
4
js> o.b
7
js> o.b=10
10
js> o....