Alternatives to adding dynamically generated inline JavaScript
<p>Generating inline JavaScript in HTML has always made me feel dirty and after having used <a href="http://en.wikipedia.org/wiki/Yahoo!%5FUI%5FLibrary" rel="nofollow">YUI</a> a bit I get the sense that it's best to leverage HTML elements as an alternative. Would it be insane to use a hidden &lt;ul&gt; to store keys and values to be used by static JavaScript which would only act when it found the &lt;ul&gt; rather than using inline JavaScript?</p>

<p>What practices are common out there and what practices have the most merit with regards to avoiding inline JavaScript?</p>
