Javascript Setup: What am I doing Wrong?

  • Context: Java 
  • Thread starter Thread starter TheDemx27
  • Start date Start date
  • Tags Tags
    Javascript Nvidia
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting issues related to running JavaScript in a web environment, specifically involving the use of Mongoose as a web server and Sublime Text as a text editor. Participants explore the setup and execution of JavaScript code within HTML files.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about why their HTML file is not executing JavaScript and mentions an error related to Python when attempting to build the project.
  • Another participant questions the term "building," suggesting that JavaScript is typically interpreted directly by the web browser without the need for a server.
  • There is a suggestion that the issue might be related to specific JavaScript files (main.js or phaser.min.js) that could be looking for Python.
  • A later reply indicates that the participant resolved their issue by installing Node.js and configuring Sublime Text to recognize it as a custom build system.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the necessity of a server for running HTML and JavaScript, as one participant suggests it is unnecessary while another implies that server setup might be relevant.

Contextual Notes

There are unresolved aspects regarding the specific configurations of Sublime Text and the implications of using Mongoose as a server, as well as the role of Python in the context of JavaScript execution.

TheDemx27
Gold Member
Messages
169
Reaction score
13
I should be able to figure this out myself, I know.

All it will display is text in html: It won't run any js. I am completely new to any sort of web programming and I've been searching the interwebs for hours. I'm using mongoose as my web server, and sublime 2 as my text editor.

JFKDLSF_zps5f48687f.png


Building returns :
Code:
The system cannot find the file specified
[cmd:  [u'python', u'-u', u'C:\\Users\\Demx\\Desktop\\Programming\\index.html']]
[dir:  C:\Users\Demx\Desktop\Programming]
[path: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\]
[Finished]

I don't know why it is saying anything about python...
 
Last edited:
Technology news on Phys.org
What do you mean by building? JavaScript is interpreted by the web browser.

Also you don't need a server for html and JavaScript. Just open the file in the browser by double clicking on it. In your web browser, you can open up the web console where error messages will be reported.
 
Last edited:
Are you sure it is not main.js or phaser.min.js that looks for python?
 
Solved it myself, for some reason sublime doesn't check for javascript? I installed node and added it as a custom "build system". Close the thread.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 19 ·
Replies
19
Views
10K