Christian Heilmann

Q&A: Dynamically assigning CSS Floating in JavaScript

April 2nd, 2007

Q: I am creating some HTML elements using JavaScript and the DOM. All is fine, but I need to define one element as floated to the right. I tried var d=document.createElement(‘div’); d.setAttribute(‘float’,’left’); which seems to do it, but the element is not floated. I tried then to use the style collection with d.style.float = ‘left’; […]

Q&A: Internet Explorer keyboard navigation doesn\’t work

April 2nd, 2007

Q: I have a Table of Contents at the beginning of a page that is linked to anchors around the headlines of all the content sections. When I click them with a mouse there is no problem – I get sent to the heading, read the paragraph and click the “back to topâ€? link to […]

Getting ready for Singapore

March 26th, 2007

I am right now burning 30 CDs (8/30 verifying right now) for my workshop on DOM scripting in Singapore in two days. The flight is in 20 hours and will last 13 hours. I then have a day to recover until the 8 powerpoints with code examples and exercises for each will be shown to […]

Determining the depth of a nested HTML list

March 26th, 2007

I had this problem the other day that I needed to know how many nesting levels a menu has. After some failed attempts of walking the DOM and lots of comparisons I realised that it is actually a lot easier than I thought: function treedepth(o){ var nested = o.getElementsByTagName(‘ul’); var allcount = 0; for(var i=0,j=nested.length;iallcount){allcount=count;} […]

Zoomable Map Solution – On Paper!

March 20th, 2007

I am rubbish with maps. I get car sick when I read them, I have no clue when I look at them and try to predict where I will find things and explanations from me normally sound something like “Take a left at the shop with the fruit, then walk until you see a blue […]

Newsletter

Check out the Dev Digest Newsletter I write every week for WeAreDevelopers.

160: Graphs and RAGs explained and VS Code extension hacks Graphs and RAG explained, how AI is reshaping UI and work, how to efficiently use Cursor, VS Code extensions security issues.
159: AI pipelines, 10x faster TypeScript, How to interview How to use LLMs to help you write code and how much electricity does that use? Is your API secure? 10x faster TypeScript thanks to Go!
158: 🕹️ Super Mario AI 🔑 API keys in LLMs 🤙🏾 Vibe Coding Why is AI playing Super Mario? How is hallucinating the least of our worries and what are rules for developing Safety Critical Code?
157: CUDA in Python, Gemini Code Assist and back-dooring LLMs We met with a CUDA expert from NVIDIA about the future of hardware, we look at how AI fails and how to play pong on 140 browser tabs.
156: Enterprise dead, all about Bluesky and React moves on! Learn about Bluesky as a platform, how to build a React App and how to speed up SQL. And play an impossible game in the browser.

My other work: