College Professor Ratings (select college)
Browse by Last Name:
REFINE YOUR SEARCH
Refine Your Search
Professor Ratings Search
Search by Department
var selectedDepartment = null;
onResourcesAndDOMReady(function() {
jQ.getJSON("ajaxapi.php?action=load-all-professors-departments", function( departments ) {
var departmentsList = document.getElementById("sidebar_department");
var i, j, chunk, chunkSize = 200;
for (i = 0,j = departments.length; i < j; i += chunkSize) {
chunk = departments.slice(i, i + chunkSize);
function addOptions(chunk) {
for(var key in chunk) {
var departmentName = chunk[key];
var selected = selectedDepartment == departmentName;
var option = document.createElement("option");
option.setAttribute("value", departmentName);
if (selected) {
option.setAttribute("selected", "selected");
}
option.innerHTML = departmentName;
departmentsList.appendChild(option);
}
};
setTimeout(addOptions.bind(null, chunk), 0);
}
});
});
Search by Last Name