XLink Property in SVG textPath Nodes

Ran into a problem today with attempting to manipulate textPath SVG elements within the DOM. Consider the following, where the variable svg is an SVG element in your DOM: var g = document.createElementNS(“http://www.w3.org/2000/svg”, “g”); var label_container = document.createElementNS(“http://www.w3.org/2000/svg”, “text”); var label = document.createElementNS(“http://www.w3.org/2000/svg”, “textPath”); label.setAttributeNS(“http://www.w3.org/1999/xlink”, ‘xlink:href’, ‘#some-path’); label.appendChild(document.createTextNode(“Hello, World!”)); label_container.appendChild(label); …

Modifications to Cubiq dot org’s Spinning Wheel Control (Updated)

Working with the UIPickerView isn’t too bad, but if you’d rather work with cool web technology like CSS3, then this control’s for you. Plus it gives you a nice basis for a very customizable picker control.  UPDATE 09-21-2012: The demo stopped working and I suspect it has something to do …