I have looked at the aims of Java-script and it intends to provide and enhanced user-interface and dynamic websites. I am trying to get into the Web Development Business and am learning Javascript. But unfortunately, I have never seen an entire website implemented in Java script. Javascript is usually just used for Ads. People use things like PHP or ASP .NET (and C#) for serious web development. So will learning Javascript seriously enable me to make Dynamic Websites , and are there any good websites made with Javascript. Is Javascript a good choice for making websites? Is it even possible?
|
|
|||||||||||||||||
|
|
You're looking for node.js. It is framework that enables using javascript as a server side language. You can also look at coffee script although it isn't technically javascript. |
|||
|
|
Have a look at GMail. Very little HTML is actually sent from the server to client. The vast majority of what gets sent from the server is actually Javascript and the data in JSON format. Javascript then runs on the client to generate the HTML that the browser actually displays. Obviously, a lot has to happen on the server to actually generate the data (and manage all of your actions, etc) but all of the rendering and user-interaction logic is Javascript. |
|||
|
|
|
JavaScript is a client-side scripting language. Most complex websites will use a combination of various technologies to generate HTML dynamically on the server (PHP, ASP.NET, etc.) and JavaScript to provide interactivity on the client (browser). You can't really develop a useful website using just JavaScript, nor was it in anyway meant to. In response to your question in the comment, I recommend you read up on HTTP and what exactly happens when you visit a website in a browser. But basically the "client" (the browser) makes a request to the server which then acts upon the request in some manner. For complex sites, in most cases, some code is run that provides an HTML document based upon the information in the request and information the server has in a database or some other persistent store. Whatever happens at this point is "server-side". When the server finishes doing that it returns the HTML document as a response to the client. That HTML document can include JavaScript which is then executed by the client (the browser) that can then alter the page or do any number of things (including serving ads). This is "client-side", it runs in the browser and the server is completely ignorant of it. |
|||||||||||||
|
|
http://expressjs.com/ is a full stack framework. http://brunchwithcoffee.com/ can be used if the application is HTML5 only. |
|||
|
|
|
ASP.NET and parallel frameworks are made for server-side development. Javascript is primarily for client-side development. It is extremely popular and powerful. Without knowing what type of website you are looking to make, yes you will be able to leverage Javascript to enhance many aspects of the web. It does much...much more then just ads. |
|||
|
|
|
Certainly. On the client side, you can use something like extjs to essentially create an entire front end in javascript, with little or no html. On the server side, as others have mentioned, node.js can be used. Though I suspect you're asking primarily about client side development. That being said, creating an entire client side piece in javascript can be very tedious. |
|||||||||
|