Category Archives: HTML/JS

Ferjeruta

New pet project up: ferjeruta.no This is a pure javascript offline projects where i try to implement a tool for commuters and tourists in western Norway. Manually (sigh..) create xml objects from routes on the ferryoperator’s webpage jquery parse these and create a live webpage use localStorage (for the most part) to do the settings-bit… Read More »

Checking checkboxes, not always a breeze

So, I was sitting here and debugging some code for more than three hours. And finally, I figured it out: You cannot set a checkbox as checked until you have appended it to a container. Code that does not work: var newEl = document.createElement(‘input’); newEl.type = ‘checkbox’; newEl.value = ‘yes’; if(value == ‘1’){    newEl.checked… Read More »