var isFirstLoadCollege = true; function QueryCollegeDropdownList(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadCollege) { isFirstLoadCollege = false; } else { if (data.length > 0) { $("#CollegeDropdown").combobox("setValue", data[0].Value); } else { $("#CollegeDropdown").combobox("clear"); } } reload(); } } function reload() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var collegeID = $("#CollegeDropdown").combobox("getValue"); $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fCollegeMissionClassTeacherSchedulingView&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID); }