gunalmel/tauber-matching — Issue #66: IE 7 does not let users submit their preferences 
Author: gunalmel
Created: 2012-02-15 01:33:14+00:00
State: open

Project contacts complained that they were seeing a yellow icon displaying "Error on Page" message on the lower left corner of their browsers. Whirlpool and Exide projects were found to be having the problem.

Symptom:
When users were submitting their preferences if they were to reject a student the page would display js error on page not letting users to submit. Tauber staff experienced the same issue as well. Issue has been reproduced by Suleyman using hs office computer having IE 7.

Solution: IE 7 does not support native js trim() function which has been used at line 320 of RankStudents.js file. Site.Master page has been updated to include

if(typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
}

from http://stackoverflow.com/questions/2308134/trim-in-javascript-not-working-in-ie to fix the issue. Issue can be reproduced by running IE 9 in IE 7 compatability mode as well.