English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

im having problems with my .js files. everytime i double click it an error always appears. it reads like this...

WINDOWS SCRIPT HOST
Script: C:\Documents and Settings\.....
Line: 93
Char: 1
Error: 'document' is undefined
Code 800A1391
Source: Microsoft Jscript runtime error

can somebody help me? im getting annoyed without even knowing the cause of my computer's response.

i would truly appreciate your response.

thank you!

2007-05-18 08:16:15 · 2 answers · asked by jahydie 2 in Computers & Internet Programming & Design

** actually, i did edit it in notepad. and i uploaded it in freeweblayouts.com. but i'm suppose to open the uploaded .js file. but "that" error keeps on popping up?**

T_T help!!!

2007-05-18 09:57:47 · update #1

2 answers


** actually, i did edit it in notepad. and i uploaded it in freeweblayouts.com. but i'm suppose to open the uploaded .js file. but "that" error keeps on popping up?**


Instead of opening the file direcetly, do a "save as" and save the file to your local machine. Then start notepad and do a file -> open and select this js file. You can see the code in notepad.

When you are double clicking the file, the contents of the file gets executed, which is why you get the above error.

Hope that answers your question

2007-05-18 13:38:14 · answer #1 · answered by Abraham Alex 4 · 0 0

This error occurs because your default acction for open is to execute the .js file.
What you should be doing is editing the file or opening the file with Notepad.
You may also like to download Notepad++. It is free and has linenumbers as well as a language parser.

2007-05-18 08:38:58 · answer #2 · answered by AnalProgrammer 7 · 1 0

fedest.com, questions and answers