What feature is this in online code

Discussion in 'Web Design and Development' started by jonpeter, Nov 27, 2013.

  1. jonpeter macrumors member

    Joined:
    Sep 19, 2013
    Location:
    MI
    #1
    Given any website. When you click on a button and then a new div appears with new information without requiring the browser to refresh the page?

    Also how would I enact this feature in HTML/CSS or JavaScript?

    Also, Happy Early Thanksgiving!
     
  2. Apple Key macrumors 6502a

    Apple Key

    Joined:
    Jan 4, 2012
    #2
    If the "new information" you are referring to is not in the source code of the page that has already been loaded, then it is being done via AJAX. Asynchronous JavaScript and XML.

    This info on the W3C's site should be good to get you started with AJAX.

    http://www.w3schools.com/php/php_ajax_intro.asp
     

Share This Page