View Full Version : More info on error
JlynnMc10
02-06-2003, 04:38 PM
I am getting this same error with all the zip files I download, when I try to open the .js files.
I went to this website:
http://www.dynamicdrive.com/dynamicindex1/topmen3/index.htm
Downloaded this file: topmenu3.zip
Then I wanted to open the custom.js file to edit it, and when I try to open it I get this error:
Windows Script Host:
Script: C:\.....\Local Settings\Temp\Temp Directory 1 for topmenu3.zip\custom.js
Line: 3
Char: 1
Error: 'exclude' is undefined
Code: 800A1391
Source: Microsoft JScript runtime error
cg9com
02-06-2003, 04:42 PM
right click the file and click "edit", this should open up your basic text editor, or just go backwards and open your text editor and point it to the file.
arnyinc
02-06-2003, 07:11 PM
Hold down the shift button and right click the file. Then select "Open with..." Choose wordpad from that list and click OK.
Tails
02-06-2003, 07:45 PM
Those open with boxes are so annoying if you don't want all JS files to open with notepad or some other editor. Here's the simple way: Open notepad, then drag the JS file into it and drop.
whammy
02-07-2003, 12:25 AM
Basically what they are telling you above is by "double clicking" to open the file, windows is trying to execute the javascript as "stand alone" native code.
In order to edit the javascript file, you'll need to right-click and open it with a text editor, or open it from within a text editor. :)
P.S. This is kind of off-topic, but maybe of interest...
Windows can execute VBScript like this (not javascript), it's kind of fun - but don't EVER click on a VBScript file sent to you unless you know what it does, because it can be malicious.
Many viruses are created in VBScript. It's not a good idea to ever execute a VBScript unless it's from a TRULY trusted source and you have verified it isn't a virus, since it can delete system files, etc. and potentially do lots of harm to your computer.
Something like this simple, fun example, will give you an idea of what you can do with VBScript locally, though.:
Dim Birthdate, BArr, Age, tempvar
Dim Birthmonth, Birthday, Birthyear
Do While Not IsDate(Birthdate)
Do While CInt(Birthmonth) < 1 OR CInt(Birthmonth) > 12
tempvar = InputBox("What month were you born?:","Please enter only numbers.")
If IsNull(tempvar) = False AND IsNumeric(tempvar) = True Then
Birthmonth = tempvar
End If
Loop
Do While CInt(Birthday) < 1 OR CInt(Birthday) > 31
tempvar = InputBox("What day were you born?:","Please enter only numbers.")
If IsNull(tempvar) = False AND IsNumeric(tempvar) = True Then
Birthday = tempvar
End If
Loop
Do While Len(Birthyear) < 4
tempvar = InputBox("What year were you born?:","Please enter only numbers.")
If IsNull(tempvar) = False AND IsNumeric(tempvar) = True Then
Birthyear = tempvar
End If
Loop
Birthdate = Birthmonth & "/" & Birthday & "/" & Birthyear
Loop
Offset = DateDiff("d",Date(),Birthmonth & "/" & Birthday & "/" & Year(Date()))
Age = DateDiff("yyyy",Date(),Birthdate)*-1
If OffSet >0 Then Age = Age - 1
MsgBox Age, 0, "Your age is:"
Keep in mind you can't use this on a webpage (except for IE browsers) - although you could use a slight modification of this with ASP.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.