<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Trey Runcie &#187; Javascript</title>
	<atom:link href="http://treyruncie.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://treyruncie.com</link>
	<description></description>
	<lastBuildDate>Mon, 07 May 2012 21:26:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Tinymce spellcheck=false, really?</title>
		<link>http://treyruncie.com/2011/08/tinymce-spellcheck-really/</link>
		<comments>http://treyruncie.com/2011/08/tinymce-spellcheck-really/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 04:13:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://treyruncie.com/?p=145</guid>
		<description><![CDATA[Today a content editor asked me if I could make the spell-check work in the web based rich text editor she uses. She wanted the browser to put the red squiggly line underneath a misspelled word. Tinymce disables the squiggle by setting a non-standard attribute called &#8220;spellcheck&#8221; equal to false.  The squiggle is such a [...]]]></description>
			<content:encoded><![CDATA[<p>Today a content editor asked me if I could make the spell-check work in the web based rich text editor she uses. She wanted the browser to put the red squiggly line underneath a misspelled word. <a href="http://www.tinymce.com/" rel="nofollow">Tinymce</a> disables the squiggle by setting a non-standard attribute called &#8220;spellcheck&#8221; equal to false.  The squiggle is such a benifit to authors, I don&#8217;t understand why they would disable this by default. The fix is simple, you can re-enable the squiggle by setting <strong>gecko_spellcheck: true</strong> in your tinymce config. A better bet altogether would be to use the <a href="http://developer.yahoo.com/yui/editor/">yui: rich text editor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://treyruncie.com/2011/08/tinymce-spellcheck-really/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Item Selector *rough draft</title>
		<link>http://treyruncie.com/2009/03/item-selector/</link>
		<comments>http://treyruncie.com/2009/03/item-selector/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 18:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://treyruncie.com/?p=68</guid>
		<description><![CDATA[Item Selector is a Javascript list multi-select UI component similar to a multiple select form element. It allows the user to click, shift+click, and crtl/option+click the elements to make a selection. It also has a few custom events which can be subscribed to. It uses the YUI Global Object, YUI Dom object, and the YUI [...]]]></description>
			<content:encoded><![CDATA[<p>Item Selector is a Javascript list multi-select UI component similar to a multiple select form element. It allows the user to click, shift+click, and crtl/option+click the elements to make a selection. It also has a few custom events which can be subscribed to. It uses the YUI Global Object, YUI Dom object, and the YUI Event object available from the <a href="http://developer.yahoo.com/yui/">Yahoo! User Interface Library</a>.</p>
<p><a title="example of the Item Selector" href="/sandbox/selector/selector.html">Item Selector example</a></p>
<p>The mark up is a simple ul:</p>
<pre>&lt;ul id="selectable-container"&gt;
    &lt;li&gt;&lt;a href="#"&gt;dog&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;cat&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;bird&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;whale&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;frog&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;monkey&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;mouse&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>The reason for the &#8220;&lt;a&gt;&#8221; tags is to keep the browser from selecting the text during a shift+click.</p>
<p>To create an instance of ItemSelector:</p>
<pre>var selectContainer = new ItemSelector.selectList('selectable-container',{css:{selectedClass: 'selected-item'}});</pre>
<p>The first argument to the selectList method is the id of the ul and the second argument is a config object containing a class to apply to the selected li&#8217;s.</p>
<p>Here are a few events which can be subscribed to:</p>
<ul>
<li>hasSelection &#8211; fires whenever the selection is modified and there is still a selection</li>
<li>noSelection &#8211; fires when the selection is cleared or the selection length becomes zero</li>
<li>noItems &#8211; fires when all list elements have been removed</li>
<li>lengthChanged &#8211; fires whenever the selection length changes</li>
<li>itemDoubleClick &#8211; fires if an item has been double clicked</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://treyruncie.com/2009/03/item-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript HTML Builder</title>
		<link>http://treyruncie.com/2008/11/javascript-html-builder/</link>
		<comments>http://treyruncie.com/2008/11/javascript-html-builder/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 18:22:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://treyruncie.com/?p=1</guid>
		<description><![CDATA[The HTML Builder is for creating markup structure with javascript in a concise nested structure. It uses the YUI Global Object and the YUI Dom object available from the Yahoo! User Interface Library. There are four public functions. contentTag: a function for creating html elements with child nodes. tag: a function for creating self closing [...]]]></description>
			<content:encoded><![CDATA[<p>The HTML Builder is for creating markup structure with javascript in a concise nested structure. It uses the YUI Global Object and the YUI Dom object available from the <a href="http://developer.yahoo.com/yui/">Yahoo! User Interface Library</a>.</p>
<p><strong>There are four public functions.</strong></p>
<ol>
<li>contentTag: a function for creating html elements with child nodes.</li>
<li>tag: a function for creating self closing html elements like img, input or br.</li>
<li>write: a function for rendering the html elements to the DOM.</li>
<li>addEvent: a function that adds an event to an element and returns that element for rendering in the Dom.</li>
</ol>
<p><a href="http://treyruncie.com/sandbox/htmlbuilder/">HTML Builder Demo</a></p>
<p><strong>Sample Usage</strong></p>
<pre>var HTML = YAHOO.treyruncie.html;
HTML.write(HTML.contentTag('a',{'href':'somelink'},'text node'));</pre>
<pre>var HTML = YAHOO.treyruncie.html;
HTML.write(
    HTML.contentTag('div',{'class':'divFromScript'},
        'DIV and input from script',
        HTML.tag('br'),
        HTML.contentTag('label',{'for':'sample'},
            'label for sample',
            HTML.tag('input',{'value':'hello world','name':'sample'})
        ),
        HTML.tag('br'),
        'DIV and input from script'
    ),
    'targetID','insertAfter'
);</pre>
]]></content:encoded>
			<wfw:commentRss>http://treyruncie.com/2008/11/javascript-html-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

