Cuttlepress

Blogging about Hacker School?

Day 46

The end-of-batch party is still going, so: today I got teleportations working in my maps, and, with Adam, worked through a bunch of gotchas in the way one interacts with HTML forms via JavaScript. (For example: element.setAttribute(attributename, attribute) can’t be used to alter an existing atttribute; instead, you want element.attriutename = attribute. Similarly confusing is that, while readonly = true prevents an input element from being written to, readonly = false does not reverse the effect; you have to element.removeAttribute(attributename).

Green line is magic.