Documentation Center

CWMain.js

loadAjaxContent: function(url, selector, async){
  var proto = this; 
  if (async === "undefined") async = true; 
  // retrieve the Content by AJAX and display: 
  $.ajax({ 
    url: url, 
    async: async, 
    cache: false, 
    dataType: "html", 
    success: function(html){ 
      $(selector).html(html);
    }, 
    error: function (r, t, e){ 
      cwMain.displayError(selector, r);
    }
  }); 
},