Microsoft Jscript Runtime Error 800a1391 Window Is Undefined
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about microsoft jscript runtime error 'node' is undefined in angularjs hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
800a1391 Document Is Undefined
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join
Microsoft Jscript Runtime Error 'window' Is Undefined
them; it only takes a minute: Sign up Microsoft JScript runtime error : Code : 800A1391 'console' is undefined while running node.js program up vote 0 down vote favorite I am new to node.js. I have created a file
0x800a1391 - Javascript Runtime Error: 'node' Is Undefined
named myFirst.js after installing node.js in Windows machine. The file looks like following : console.log("Sweet .. Welcome to Node.js"); But when I try to navigate to that directory and execute the file it throws an error like the following : Even a command like is not working. What am I missing ? How would I execute my first node.js code block ? javascript node.js share|improve this question asked Nov 28 '15 at 19:10 StrugglingCoder 7371618 2 Looks javascript error code 800a1391 like you're running the code with Windows Script Host and not Node. –Pointy Nov 28 '15 at 19:22 @Pointy How to run it via node ... ? Could you show me ? –StrugglingCoder Nov 29 '15 at 10:37 I certainly would if I could; I've never used Node on Windows. Perhaps if you knew the absolute path to the real Node executable, you'd type that followed by the name of your JavaScript code. I think that would work. –Pointy Nov 29 '15 at 14:45 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote You must prefix your execution of the *.Js file with the node executable to add context, as if to say, "open this file with the node scripting engine, rather than the default Microsoft scripting engine, which does not recognize the 'console' object." Therefore, instead of simply providing the name of the .Js file, like so: myFirst.js Change it to: node myFirst.js The name of the *.js file acts as a parameter to the node executable, which is then executed, providing you with your "Sweet.. Welcome to Node.js" statement. share|improve this answer edited Mar 7 at 2:21 Mogsdad 24.6k955123 answered Mar 7 at 1:53 HALAR 11 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using E
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more js error 800a1391 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users 'console' is undefined 800a1391 Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each node.js download other. Join them; it only takes a minute: Sign up I can't open JS files in Windows from Filezilla up vote 3 down vote favorite 2 I logged in to my FTP from Filezilla and tried to open http://stackoverflow.com/questions/33975327/microsoft-jscript-runtime-error-code-800a1391-console-is-undefined-while-r a JS file, and it gave me the following error: Script: C:/.../slider.js Line: 1 Char: 1 Error: 'document' is undefined Code: 800A1391 Source: Microsoft JScript runtime error I have jQuery linked to the .php file as well...'document' comes from: $(document).ready(function() { //Code is here... }); I tried downloading the file and opening it, I tried removing the $(document).ready();, I tried removing jquery (which by the way, when I opened the jQuery file it gave me the same http://stackoverflow.com/questions/13275598/i-cant-open-js-files-in-windows-from-filezilla almost the same error). Any help is appreciated. Thanks! EDIT: One of the tags for this post was "asp.net", but to be honest I don't even know if it is related to asp.net... javascript asp.net ftp share|improve this question edited Nov 7 '12 at 18:18 asked Nov 7 '12 at 18:11 Bryce 541311 1 What do you mean by "open a file"? In a browser? How are you running it? Are you attaching it to a web page? –jfrej Nov 7 '12 at 18:13 right clicking and clicking "View/Edit". My default text editor is Notepad++... –Bryce Nov 7 '12 at 18:17 And Notepad++ gives you the MS JScript runtime error? Or FileZilla gives you the error? –jfrej Nov 7 '12 at 18:18 It's a window's error I think... If it's not then it would be Filezilla giving me the error... –Bryce Nov 7 '12 at 18:22 The title of the error is "Windows Script Host" –Bryce Nov 7 '12 at 18:25 add a comment| 4 Answers 4 active oldest votes up vote 19 down vote accepted I had the same issue and fixed it by doing the following in Filezilla: Go to Edit > Settings Go to the 'File editing' section Under 'Default Editor': Ensure that Notepad++ is selected as your custom editor Change the radio button from 'Use filetype associatio
to is undefined jQuery Forum View Course 464 points Submitted by CJDAM over 3 years ago Why do I get an error saying: microsoft jscript runtime 'document is undefined' when I run my script? I will run my script (script.js) and an error screen pops up saying: Line:1 Char:1 Error: 'document' is undefined Code: 800A1391 Source: Microsoft JScript runtime error 0 votes permalink Had you add jquery file? Add this in your code 6 points Submitted by Lovely Kaushik over 3 years ago
in the picture below. Send Cancel From : guestTo : Subject : Content : Type the characters you see in the picture below. Send Update CancelFeedbackEmail IDSubject : Comments : Send CancelPrivate MessageType the characters you see in the picture below. Type the characters you see in the picture below. Attach files Desktop Zoho Docs Google Docs Each Attachment size should not exceed 1.0 MB. Max no of attachments : 3Loading User Profile... guest Response titleThis is preview!Attachments Publish Back to edit Cancel ()Sign In New to this Portal? Click here to Sign upYou can also use the below options to loginLogin with FacebookLogin with GoogleLogin with Yahoo jQuery Plugins UI Meetups Forum Blog About Donate All Forums Recent Posts Log In Search jQuery Search jQuery Forum Move this topicForum : Getting StartedUsing jQueryUsing jQuery PluginsUsing jQuery UIDeveloping jQuery CoreDeveloping jQuery PluginsDeveloping jQuery UIQUnit and TestingAbout the jQuery ForumjQuery ConferencesjQuery MobileDeveloping jQuery Mobile Sub forum : Move this topic Cancel Getting Started barker4684 'window' is undefined in Getting Started • 6 years ago Getting the following error when attempting install of jQuery-1.4.2.min.js Line: 16 Char: 1 Error: 'window' is undefined Code: 800A1391 Source: Microsoft JScript runtime error 2 Reply Replies(7) dave.meth.. Re: 'window' is undefined 6 years ago Well from the error message I can tell you're using IE, and the problem seems to be on line 16. Can you provide some more information about what you are doing to "install" jQuery? Normally there's no installation required, you just include it in your html page via a script tag. Leave a comment on dave.methvin's reply mindbodyh.. Re: 'window' is undefined 6 years ago Well, the error message doesn't appear on my browser. It shows up at server side which kinda surprises me because Javascript should be sent to the browser directly without being parsed by the server.I'm using PHP 64-bit version and the server is