Hist: get course listing to work again
Posted by sarneil on 09 Sep 2008 in Activity log
Worked labouriously through the php code generating the javascript array of courses and then the javascript code manipulating the array. The php was including carriage returns in the course description field of the javascript array, which meant that the array was ill-formed. I'm not sure if this is because the line-ends used on the uvic calendar web site have changed or if someone edited the php code and removed some critical trim function calls or or made other changes with equivalent effect. While I was at it, I cleaned up a bunch of the php code and slightly modified the xhtml it outputs into the description field of the javascript array. (so it now reliably creates a div containing p tags for each course's description).