From 5b8c83bf68f0ff35d46a8e2caee00daf67327cfa Mon Sep 17 00:00:00 2001 From: Curt Hash Date: Thu, 8 Oct 2009 14:33:43 -0600 Subject: [PATCH] proper way to reference an element --- mkpuzzles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkpuzzles.py b/mkpuzzles.py index e3a199d..3d3e0da 100755 --- a/mkpuzzles.py +++ b/mkpuzzles.py @@ -71,10 +71,10 @@ for cat in os.listdir(opts.puzzles): team = readCookie('team'); passwd = readCookie('passwd'); if (team != null) { - form.t.value = team; + document.getElementById("form").t.value = team; } if (passwd != null) { - form.w.value = passwd; + document.getElementById("form").w.value = passwd; } } window.onload = getTeamInfo;