the daily snivel

Tuesday, August 02, 2005
 
An amazing fact that is nevertheless impossible to use to pick up chicks.

Neither ladies nor gents will ever be racing to bed you for knowing it and mentioning it conversationally at a party, but after many tedious hours today working on the new website for the Legal Clinic, I was able to work out something of fundamental importance. At least, of fundamental importance to people who work on websites that:

  1. Use javascript
  2. Use javascript variables that must be given text strings in the code in order to display things like titles on the website; and
  3. Don't come with instructions.


And here it is: when you need to enter international symbols in blocks of text, say in French (because you're putting up a website for "Canada's University," which is mighty bilingual), and it is absolutely essential to put those dreaded "illegal characters" (like semicolons; apostrophes; ampersands; slashes; and the rest!) in because French is crammed with apostrophes, you don't need to shoot yourself in the head, painting the wall of your office a delicate shade of you despite the fact that normal HTML code-friendly commands like ' won't work either, because they also use illegal characters (and of course, this step was the first thing I tried when I realized after an hour and a half of trying everything that the reason my index page wasn't working was because illegal characters were in there somewhere).

What you do is, make it an "escape character" by adding a slash in front of the offending illegal character so that Java realizes you're referring to a block of text and not interfering with a line of coding. Thus, evil, illegal, no good:

'Clinique juridique communautaire de l'université d'Ottawa'

Becomes okey dokey:
'Clinique juridique communautaire de l\'université d\'Ottawa'


Useless information, I know, but it took me hours to figure it out, and I needed to say so. Goddamn University-mandated templates!
 

5:44 PM

Comments:

 Post a Comment

 

about

Rob's continuing tirade against ignorance, social conservatism, poor spelling, popular culture, and loneliness, featuring caffeinated discussions of law, politics, Macs, booze, Ottawa, treefrogs, and occasionally girls.


redirection

- about me

- go onwards to moodyland
- misanthropic philosophy of the week
- contact me
- complete archives
- RSS site feed


archives

04/06/1997 - 07/31/2002
06/01/2003 - 07/01/2003
07/01/2003 - 08/01/2003
08/01/2003 - 09/01/2003
09/01/2003 - 10/01/2003
10/01/2003 - 11/01/2003
11/01/2003 - 12/01/2003
12/01/2003 - 01/01/2004
01/01/2004 - 02/01/2004
02/01/2004 - 03/01/2004
03/01/2004 - 04/01/2004
04/01/2004 - 05/01/2004
05/01/2004 - 06/01/2004
06/01/2004 - 07/01/2004
07/01/2004 - 08/01/2004
08/01/2004 - 09/01/2004
09/01/2004 - 10/01/2004
10/01/2004 - 11/01/2004
11/01/2004 - 12/01/2004
12/01/2004 - 01/01/2005
01/01/2005 - 02/01/2005
02/01/2005 - 03/01/2005
03/01/2005 - 04/01/2005
04/01/2005 - 05/01/2005
05/01/2005 - 06/01/2005
06/01/2005 - 07/01/2005
07/01/2005 - 08/01/2005
08/01/2005 - 09/01/2005
09/01/2005 - 10/01/2005
10/01/2005 - 11/01/2005
11/01/2005 - 12/01/2005
12/01/2005 - 01/01/2006
01/01/2006 - 02/01/2006
02/01/2006 - 03/01/2006
03/01/2006 - 04/01/2006
04/01/2006 - 05/01/2006
05/01/2006 - 06/01/2006
06/01/2006 - 07/01/2006
07/01/2006 - 08/01/2006
08/01/2006 - 09/01/2006
09/01/2006 - 10/01/2006
10/01/2006 - 11/01/2006
11/01/2006 - 12/01/2006
12/01/2006 - 01/01/2007
01/01/2007 - 02/01/2007
02/01/2007 - 03/01/2007
03/01/2007 - 04/01/2007
06/01/2007 - 07/01/2007

swell blogs

   usa politics
   Eschaton (Atrios)
   Sadly, No!
   World O'Crap
   Pandagon
   Jesus' General
   Daily Kos
   Unclaimed Territory
   James Wolcott
   Orcinus
   Talking Points Memo
   Roger Ailes
   Suburban Guerrilla
   A New York Escort's Confessions
   Sisyphus Shrugged
   Firedoglake
   canadian law and politics
   Michael Geist
   Accidental Deliberations
   The Amazing Wonderdog
   POGGE
   Creekside
   Canadian Cynic
   apple
   Daring Fireball
   The Secret Diary of Steve Jobs
   The Macalope
   Crazy Apple Rumours
   and so on
   Brad Sucks
   Matilda
   Chez Mel
   Cute Overload


template accessibility

   Light Text on Dark (Default)
   Dark Text on Light