<?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>Dolbex &#187; Uncategorized</title>
	<atom:link href="http://www.dolbex.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dolbex.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 14 Oct 2009 14:21:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Radio Buttons in CakePHP the Right Way</title>
		<link>http://www.dolbex.com/radio-buttons-in-cakephp-the-right-way/</link>
		<comments>http://www.dolbex.com/radio-buttons-in-cakephp-the-right-way/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 14:19:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dolbex.com/?p=71</guid>
		<description><![CDATA[&#60;?php
$options=array&#40;'Business'=&#62;;'Business','Consumer'=&#62;'Consumer', 'Both'=&#62;'Both'&#41;;
$attributes=array&#40;'label'=&#62;false, 'type'=&#62;'radio', 'value'=&#62;'Both', 'options'=&#62;$options&#41;;
echo $form-&#62;input&#40;'who_to_include',$attributes&#41;;
?&#62;
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$options</span><span style="color: #339933;">=</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Business'</span><span style="color: #339933;">=&gt;;</span><span style="color: #0000ff;">'Business'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Consumer'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Consumer'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Both'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Both'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$attributes</span><span style="color: #339933;">=</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span><span style="color: #339933;">=&gt;</span>false<span style="color: #339933;">,</span> <span style="color: #0000ff;">'type'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'radio'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'value'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Both'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'options'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'who_to_include'</span><span style="color: #339933;">,</span><span style="color: #000088;">$attributes</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dolbex.com/radio-buttons-in-cakephp-the-right-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting a Tire&#8217;s Size to Wheel Height</title>
		<link>http://www.dolbex.com/converting-a-tires-size-to-wheel-height/</link>
		<comments>http://www.dolbex.com/converting-a-tires-size-to-wheel-height/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 15:56:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dolbex.com/?p=60</guid>
		<description><![CDATA[example
265/70R17
(2*({sidewall (ex: 265)}/25.4)*({ratio (ex: 70)/100))+{wheel size (ex: 17)}
]]></description>
			<content:encoded><![CDATA[<p>example</p>
<p>265/70R17</p>
<p>(2*({sidewall (ex: 265)}/25.4)*({ratio (ex: 70)/100))+{wheel size (ex: 17)}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dolbex.com/converting-a-tires-size-to-wheel-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smarty crashing with JavaScript Curly Braces</title>
		<link>http://www.dolbex.com/smarty-crashing-with-javascript-curly-braces/</link>
		<comments>http://www.dolbex.com/smarty-crashing-with-javascript-curly-braces/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 13:49:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Smarty]]></category>

		<guid isPermaLink="false">http://www.dolbex.com/?p=21</guid>
		<description><![CDATA[If you ever need to use curly braces in a Smarty template use the following code:
&#123;literal&#125;
&#60;script&#62;// &#60;![CDATA[
&#60;!--
function getPrompt&#40;&#41; &#123;
// js function here
&#125;
//--&#62;
&#60;/script&#62;
&#123;/literal&#125;
&#8230; or &#8230;
&#60;script language=&#34;javascript&#34;&#62;
&#60;!--
function getPrompt&#40;&#41; &#123;ldelim&#125;
// js function here
&#123;rdelim&#125;
//--&#62;
&#60;/script&#62;
]]></description>
			<content:encoded><![CDATA[<p>If you ever need to use curly braces in a Smarty template use the following code:</p>
<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#123;</span>literal<span style="color: #009900;">&#125;</span><br />
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span><span style="color: #666666; font-style: italic;">// &lt;![CDATA[</span><br />
<span style="color: #339933;">&lt;!--</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getPrompt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #666666; font-style: italic;">// js function here</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #666666; font-style: italic;">//--&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span><br />
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span>literal<span style="color: #009900;">&#125;</span></div></div>
<p>&#8230; or &#8230;</p>
<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;script language</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!--</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getPrompt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>ldelim<span style="color: #009900;">&#125;</span><br />
<span style="color: #666666; font-style: italic;">// js function here</span><br />
<span style="color: #009900;">&#123;</span>rdelim<span style="color: #009900;">&#125;</span><br />
<span style="color: #666666; font-style: italic;">//--&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dolbex.com/smarty-crashing-with-javascript-curly-braces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Properties To JavaScript Reference Conversion</title>
		<link>http://www.dolbex.com/css-properties-to-javascript-reference-conversion/</link>
		<comments>http://www.dolbex.com/css-properties-to-javascript-reference-conversion/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 14:24:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.dolbex.com/?p=17</guid>
		<description><![CDATA[Found this uber-useful table for CSS -&#62; Javascript conversions over at hardwar.org.  I copied it here because it was kinda buried and just in case it disappears.



CSS Property
JavaScript Reference


background
background


background-attachment
backgroundAttachment


background-color
backgroundColor


background-image
backgroundImage


background-position
backgroundPosition


background-repeat
backgroundRepeat


border
border


border-bottom
borderBottom


border-bottom-color
borderBottomColor


border-bottom-style
borderBottomStyle


border-bottom-width
borderBottomWidth


border-color
borderColor


border-left
borderLeft


border-left-color
borderLeftColor


border-left-style
borderLeftStyle


border-left-width
borderLeftWidth


border-right
borderRight


border-right-color
borderRightColor


border-right-style
borderRightStyle


border-right-width
borderRightWidth


border-style
borderStyle


border-top
borderTop


border-top-color
borderTopColor


border-top-style
borderTopStyle


border-top-width
borderTopWidth


border-width
borderWidth


clear
clear


clip
clip


color
color


cursor
cursor


display
display


filter
filter


font
font


font-family
fontFamily


font-size
fontSize


font-variant
fontVariant


font-weight
fontWeight


height
height


left
left


letter-spacing
letterSpacing


line-height
lineHeight


list-style
listStyle


list-style-image
listStyleImage


list-style-position
listStylePosition


list-style-type
listStyleType


margin
margin


margin-bottom
marginBottom


margin-left
marginLeft


margin-right
marginRight


margin-top
marginTop


overflow
overflow


padding
padding


padding-bottom
paddingBottom


padding-left
paddingLeft


padding-right
paddingRight


padding-top
paddingTop


page-break-after
pageBreakAfter


page-break-before
pageBreakBefore


position
position


float
styleFloat


text-align
textAlign


text-decoration
textDecoration


text-decoration: blink
textDecorationBlink


text-decoration: line-through
textDecorationLineThrough


text-decoration: none
textDecorationNone


text-decoration: overline
textDecorationOverline


text-decoration: underline
textDecorationUnderline


text-indent
textIndent


text-transform
textTransform


top
top


vertical-align
verticalAlign


visibility
visibility


width
width


z-index
zIndex



Usage
Internet Explorer
document.all.div_id.style.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Older Netscape&#8217;s (4.7 and earlier)
document.div_id.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Netscape 6.0+ and Opera (and other Mozilla)
document.getElementById(div_id).style.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Note the use of parentheses [...]]]></description>
			<content:encoded><![CDATA[<p>Found this uber-useful table for CSS -&gt; Javascript conversions over at <a href="http://codepunk.hardwar.org.uk/css2js.htm" target="_blank">hardwar.org</a>.  I copied it here because it was kinda buried and just in case it disappears.</p>
<table border="2" cellspacing="0" cellpadding="5" width="70%" align="center">
<tbody>
<tr>
<th width="50%" align="center">CSS Property</th>
<th width="50%" align="center">JavaScript Reference</th>
</tr>
<tr>
<td width="50%" align="center">background</td>
<td width="50%" align="center">background</td>
</tr>
<tr>
<td width="50%" align="center">background-attachment</td>
<td width="50%" align="center">backgroundAttachment</td>
</tr>
<tr>
<td width="50%" align="center">background-color</td>
<td width="50%" align="center">backgroundColor</td>
</tr>
<tr>
<td width="50%" align="center">background-image</td>
<td width="50%" align="center">backgroundImage</td>
</tr>
<tr>
<td width="50%" align="center">background-position</td>
<td width="50%" align="center">backgroundPosition</td>
</tr>
<tr>
<td width="50%" align="center">background-repeat</td>
<td width="50%" align="center">backgroundRepeat</td>
</tr>
<tr>
<td width="50%" align="center">border</td>
<td width="50%" align="center">border</td>
</tr>
<tr>
<td width="50%" align="center">border-bottom</td>
<td width="50%" align="center">borderBottom</td>
</tr>
<tr>
<td width="50%" align="center">border-bottom-color</td>
<td width="50%" align="center">borderBottomColor</td>
</tr>
<tr>
<td width="50%" align="center">border-bottom-style</td>
<td width="50%" align="center">borderBottomStyle</td>
</tr>
<tr>
<td width="50%" align="center">border-bottom-width</td>
<td width="50%" align="center">borderBottomWidth</td>
</tr>
<tr>
<td width="50%" align="center">border-color</td>
<td width="50%" align="center">borderColor</td>
</tr>
<tr>
<td width="50%" align="center">border-left</td>
<td width="50%" align="center">borderLeft</td>
</tr>
<tr>
<td width="50%" align="center">border-left-color</td>
<td width="50%" align="center">borderLeftColor</td>
</tr>
<tr>
<td width="50%" align="center">border-left-style</td>
<td width="50%" align="center">borderLeftStyle</td>
</tr>
<tr>
<td width="50%" align="center">border-left-width</td>
<td width="50%" align="center">borderLeftWidth</td>
</tr>
<tr>
<td width="50%" align="center">border-right</td>
<td width="50%" align="center">borderRight</td>
</tr>
<tr>
<td width="50%" align="center">border-right-color</td>
<td width="50%" align="center">borderRightColor</td>
</tr>
<tr>
<td width="50%" align="center">border-right-style</td>
<td width="50%" align="center">borderRightStyle</td>
</tr>
<tr>
<td width="50%" align="center">border-right-width</td>
<td width="50%" align="center">borderRightWidth</td>
</tr>
<tr>
<td width="50%" align="center">border-style</td>
<td width="50%" align="center">borderStyle</td>
</tr>
<tr>
<td width="50%" align="center">border-top</td>
<td width="50%" align="center">borderTop</td>
</tr>
<tr>
<td width="50%" align="center">border-top-color</td>
<td width="50%" align="center">borderTopColor</td>
</tr>
<tr>
<td width="50%" align="center">border-top-style</td>
<td width="50%" align="center">borderTopStyle</td>
</tr>
<tr>
<td width="50%" align="center">border-top-width</td>
<td width="50%" align="center">borderTopWidth</td>
</tr>
<tr>
<td width="50%" align="center">border-width</td>
<td width="50%" align="center">borderWidth</td>
</tr>
<tr>
<td width="50%" align="center">clear</td>
<td width="50%" align="center">clear</td>
</tr>
<tr>
<td width="50%" align="center">clip</td>
<td width="50%" align="center">clip</td>
</tr>
<tr>
<td width="50%" align="center">color</td>
<td width="50%" align="center">color</td>
</tr>
<tr>
<td width="50%" align="center">cursor</td>
<td width="50%" align="center">cursor</td>
</tr>
<tr>
<td width="50%" align="center">display</td>
<td width="50%" align="center">display</td>
</tr>
<tr>
<td width="50%" align="center">filter</td>
<td width="50%" align="center">filter</td>
</tr>
<tr>
<td width="50%" align="center">font</td>
<td width="50%" align="center">font</td>
</tr>
<tr>
<td width="50%" align="center">font-family</td>
<td width="50%" align="center">fontFamily</td>
</tr>
<tr>
<td width="50%" align="center">font-size</td>
<td width="50%" align="center">fontSize</td>
</tr>
<tr>
<td width="50%" align="center">font-variant</td>
<td width="50%" align="center">fontVariant</td>
</tr>
<tr>
<td width="50%" align="center">font-weight</td>
<td width="50%" align="center">fontWeight</td>
</tr>
<tr>
<td width="50%" align="center">height</td>
<td width="50%" align="center">height</td>
</tr>
<tr>
<td width="50%" align="center">left</td>
<td width="50%" align="center">left</td>
</tr>
<tr>
<td width="50%" align="center">letter-spacing</td>
<td width="50%" align="center">letterSpacing</td>
</tr>
<tr>
<td width="50%" align="center">line-height</td>
<td width="50%" align="center">lineHeight</td>
</tr>
<tr>
<td width="50%" align="center">list-style</td>
<td width="50%" align="center">listStyle</td>
</tr>
<tr>
<td width="50%" align="center">list-style-image</td>
<td width="50%" align="center">listStyleImage</td>
</tr>
<tr>
<td width="50%" align="center">list-style-position</td>
<td width="50%" align="center">listStylePosition</td>
</tr>
<tr>
<td width="50%" align="center">list-style-type</td>
<td width="50%" align="center">listStyleType</td>
</tr>
<tr>
<td width="50%" align="center">margin</td>
<td width="50%" align="center">margin</td>
</tr>
<tr>
<td width="50%" align="center">margin-bottom</td>
<td width="50%" align="center">marginBottom</td>
</tr>
<tr>
<td width="50%" align="center">margin-left</td>
<td width="50%" align="center">marginLeft</td>
</tr>
<tr>
<td width="50%" align="center">margin-right</td>
<td width="50%" align="center">marginRight</td>
</tr>
<tr>
<td width="50%" align="center">margin-top</td>
<td width="50%" align="center">marginTop</td>
</tr>
<tr>
<td width="50%" align="center">overflow</td>
<td width="50%" align="center">overflow</td>
</tr>
<tr>
<td width="50%" align="center">padding</td>
<td width="50%" align="center">padding</td>
</tr>
<tr>
<td width="50%" align="center">padding-bottom</td>
<td width="50%" align="center">paddingBottom</td>
</tr>
<tr>
<td width="50%" align="center">padding-left</td>
<td width="50%" align="center">paddingLeft</td>
</tr>
<tr>
<td width="50%" align="center">padding-right</td>
<td width="50%" align="center">paddingRight</td>
</tr>
<tr>
<td width="50%" align="center">padding-top</td>
<td width="50%" align="center">paddingTop</td>
</tr>
<tr>
<td width="50%" align="center">page-break-after</td>
<td width="50%" align="center">pageBreakAfter</td>
</tr>
<tr>
<td width="50%" align="center">page-break-before</td>
<td width="50%" align="center">pageBreakBefore</td>
</tr>
<tr>
<td width="50%" align="center">position</td>
<td width="50%" align="center">position</td>
</tr>
<tr>
<td width="50%" align="center">float</td>
<td width="50%" align="center">styleFloat</td>
</tr>
<tr>
<td width="50%" align="center">text-align</td>
<td width="50%" align="center">textAlign</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration</td>
<td width="50%" align="center">textDecoration</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration: blink</td>
<td width="50%" align="center">textDecorationBlink</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration: line-through</td>
<td width="50%" align="center">textDecorationLineThrough</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration: none</td>
<td width="50%" align="center">textDecorationNone</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration: overline</td>
<td width="50%" align="center">textDecorationOverline</td>
</tr>
<tr>
<td width="50%" align="center">text-decoration: underline</td>
<td width="50%" align="center">textDecorationUnderline</td>
</tr>
<tr>
<td width="50%" align="center">text-indent</td>
<td width="50%" align="center">textIndent</td>
</tr>
<tr>
<td width="50%" align="center">text-transform</td>
<td width="50%" align="center">textTransform</td>
</tr>
<tr>
<td width="50%" align="center">top</td>
<td width="50%" align="center">top</td>
</tr>
<tr>
<td width="50%" align="center">vertical-align</td>
<td width="50%" align="center">verticalAlign</td>
</tr>
<tr>
<td width="50%" align="center">visibility</td>
<td width="50%" align="center">visibility</td>
</tr>
<tr>
<td width="50%" align="center">width</td>
<td width="50%" align="center">width</td>
</tr>
<tr>
<td width="50%" align="center">z-index</td>
<td width="50%" align="center">zIndex</td>
</tr>
</tbody>
</table>
<h2>Usage</h2>
<h3>Internet Explorer</h3>
<p>document.all.<em>div_id</em>.style.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<h3>Older Netscape&#8217;s (4.7 and earlier)</h3>
<p>document.<em>div_id</em>.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<h3>Netscape 6.0+ and Opera (and other Mozilla)</h3>
<p>document.getElementById(<em>div_id</em>).style.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<p>Note the use of parentheses instead of square brackets in newer Mozilla&#8217;s &#8220;getElementById()&#8221; reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dolbex.com/css-properties-to-javascript-reference-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
