Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

JavaScript What scripts do websites like unitednuclear.com use?

  1. May 15, 2015 #1
    I recently finished a course of html and css at codeacademy.com and I think I learned a lot from that but I do not feel prepared to make websites that can, for example, load another page when a button is clicked.
    Overall I want to know what type of languages are used to program sites like unitednuclear.com. Does that site use html/css, php, javascript or a combination of them?
    Objective is to be able to make a website as advanced as unitednuclear.com or something similar.
  2. jcsd
  3. May 15, 2015 #2


    Staff: Mentor

    The three major server-side languages are java as servlets and/or jsps, php and more recently node.js.

    Node.js is interesting in that it allows to code in javascript on the server and within your web page whereas other solutions are a mixture of multiple languages.
  4. May 15, 2015 #3
    Would php allow new pages to load if a button were clicked?
  5. May 15, 2015 #4
    No, You need to use Javascript to tell the browser what to do when a button is clicked. PHP is for rendering or server-side work.

    There are different kinds of sites, the one that you specified is more UI based. These are usually mostly Java, Javascript, PHP, and HTML[5]. Most of the work is done via forms and scripts that execute on the browser. These are falling out of favor because they are not portable, the business functionality and the UI are completely dependent on each other.

    Then you have a service based style. In these, there is a small amount of Javascript and PHP displaying things and handling browser events, but instead of asking the webserver for a new page, they give the webserver a REST/RPC request, which then launches a PHP (usually) script to do work, or interact with a database.

    What language you pick usually depends on what you want to do. NodeJS for example is really nice for services that you want to return, then continue doing work behind the scenes. PHP is really nice because it interacts with the linux system so smoothly, but its single threaded. Hell, I once wrote a web server in C because I needed more speed our of image recognition software.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook