Maintenance

  • Home
  • Log in
  • « Update to LDAP problem
  • Testing of Wine + Image Markup Tool on the Mac »

English Grad Apps program fix

Posted by jamie on 08 Feb 2011 in Activity log

Small fix to the english grad apps program that allows reviewers to review PhD and MA applications online. The names of applicants are passed to a Javascript function that is triggered upon button click, like this (names used are not real):

<button onclick="showform('LASTNAME-Firstname-PhD')">Assess...</button>

However, if the name had an apostrophe, it was breaking the Javascript:

<button onclick="showform('LAST'NAME-Firstname-PhD')">Assess...</button>

So, I simply escaped the names with addslashes().

This entry was posted by Jamie and filed under Activity log.

Maintenance

This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent.
  • Home
  • Recently
  • Archives
  • Categories

Search

Categories

  • All
  • Announcements
  • Hit by a bus
  • Labs
    • Activity log
    • Documentation
  • Notes
  • R & D
    • Activity log
    • Documentation
  • Servers
    • Activity log
    • Documentation
  • Tasks

All blogs

  • Academic
  • AdaptiveDB
  • Admin
  • Announcements
  • CanMys
  • Cascade
  • CGWP
  • ColDesp
  • Depts
  • DVPP
  • Endings
  • HCMC Blogs
  • Landscapes
  • LEMDO
  • Linguistics
  • Maint
  • LondonMap
  • Mariage
  • MoM
  • Moses
  • Pro-D
  • Projects
  • ScanCan
  • HumsSites
  • Wendat

This collection ©2022 by admin • Help • Bootstrap back-end