crazyyy
4/29/2014 - 11:13 PM

JS: load external content into block

JS: load external content into block

$("#content").load("somefile.html", function(response, status, xhr) {
  // error handling
  if (status == "error") {
    $("#content").html("An error occured: " + xhr.status + " " + xhr.statusText);
  }
});