<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>✩CodeStar✩</title>
	<atom:link href="http://codestar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codestar.wordpress.com</link>
	<description>~Me and my love affair with code :: XHTML, CSS, JavaScript, PHP, ColdFusion, C#, SQL, etc...~</description>
	<lastBuildDate>Fri, 04 Sep 2009 14:27:35 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='codestar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/b6fc956933dfa20ec677a3a33bd35d69?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>✩CodeStar✩</title>
		<link>http://codestar.wordpress.com</link>
	</image>
			<item>
		<title>Setting up PHP 5 on IIS 5</title>
		<link>http://codestar.wordpress.com/2009/09/04/setting-up-php-5-on-iis-5/</link>
		<comments>http://codestar.wordpress.com/2009/09/04/setting-up-php-5-on-iis-5/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 14:26:47 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=175</guid>
		<description><![CDATA[This was tons of fun, in a few easy steps:
**NOTE: I am installing using CGI and not ISAPI

Download and unzip PHP package to desired PHP directory (eg: C:\PHP)
Add &#8216;;c:\PHP&#8217; (or wherever you stored your PHP directory without quotes) to your PC Path. To get there go to &#8220;my computer&#8221; -&#62; right click &#62; properties &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=175&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This was tons of fun, in a few easy steps:<br />
**NOTE: I am installing using CGI and not ISAPI</p>
<ol>
<li>Download and unzip PHP package to desired PHP directory (eg: C:\PHP)</li>
<li>Add &#8216;;c:\PHP&#8217; (or wherever you stored your PHP directory without quotes) to your PC Path. To get there go to &#8220;my computer&#8221; -&gt; right click &gt; properties &gt; advanced &gt; environement variables &gt; and add to the system variable &#8216;Path&#8217;</li>
<li>Restart your computer</li>
<li>Open IIS</li>
<li>Right click on your site or virtual directory </li>
<li>Make sure execute permissions on the home tab says &#8217;scripts only&#8217;</li>
<li>Click configuration and click add to add the PHP executable</li>
<li>Add &#8216;.php&#8217; as the extension and browse to your php folder and add php-cgi.exe as the executable</li>
<li>Leave everything else the same and click okay a few times&#8230;</li>
<li>Go back up from your home directory and click on web service extension. It is the same level as your website branch.</li>
<li>Right click and go to &#8220;add new web service extension&#8221;</li>
<li>Type PHP as the name and browse to php-cgi.exe for the required file.</li>
<li>Create and test a PHP file!</li>
</ol>
Posted in Beginner, Intermediate, PHP  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=175&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/09/04/setting-up-php-5-on-iis-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Coldfusion &amp; Cfouput Group</title>
		<link>http://codestar.wordpress.com/2009/08/28/coldfusion-cfouput-group/</link>
		<comments>http://codestar.wordpress.com/2009/08/28/coldfusion-cfouput-group/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 21:31:34 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[RTM]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=173</guid>
		<description><![CDATA[I really do like Coldfusion. No, really =).
However, here is an ever so useful tip brought to you by me &#8211; CodeStar.
So, CFoutput should be on the forefront of every beginner ColdFusion scrip-tor.  However, lo- and behold, I wanted to group my results. Simple right? No, not so much. In order to use the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=173&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I really do like Coldfusion. No, really =).</p>
<p>However, here is an ever so useful tip brought to you by me &#8211; CodeStar.</p>
<p>So, CFoutput should be on the forefront of every beginner ColdFusion scrip-<em>tor</em>.  However, lo- and behold, I wanted to group my results. Simple right? No, not so much. In order to use the group attribute on the <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_m-o_16.html">cfoutput </a>tag, you must use order by&#8230; or else group won&#8217;t work. Ah, the joys and wonders of ColdFusion. Of course although I overlooked this, it <em>is </em>documented in the docs:</p>
<blockquote><p>Use if you retrieved a record set ordered on one or more a query columns.</p></blockquote>
Posted in Beginner, ColdFusion, RTM  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=173&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/08/28/coldfusion-cfouput-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript OOP, event handling, and THIS!</title>
		<link>http://codestar.wordpress.com/2009/08/14/javascript-oop-event-handling-and-this/</link>
		<comments>http://codestar.wordpress.com/2009/08/14/javascript-oop-event-handling-and-this/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 21:13:56 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Thanks to Google =P]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=167</guid>
		<description><![CDATA[So today as I was oh so joyfully finishing up a project, I ran into another fun (but enlightening) Javascript issue.
I have an object, and within that object&#8230; I have methods (nothing special there, huh?). So, I figured that since all of this is so prettily encapsulated, I should have no issues adding an event [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=167&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So today as I was oh so joyfully finishing up a project, I ran into another fun (but enlightening) Javascript issue.</p>
<p>I have an object, and within that object&#8230; I have methods (nothing special there, huh?). So, I figured that since all of this is so prettily encapsulated, I should have no issues adding an event handler inside my object that would allow me to click and go to a method inside my object.</p>
<p>Woe is me. You see, the &#8216;this&#8217; keyword refers to the parent of the caller. And since I changed the caller from my object to my delightful event handler method, this went to the object that called the event, and not the parent object.</p>
<p>So my problem was &#8211; how do I access all of my properties and other events that are in my parent object, from my method that was actually an input object&#8230; phew.</p>
<p>It did take some work, and some browsing of the Interwebs. Unfortunately, the Interwebs yielded unhelpful and verbose ways to get around what seemed like a simple problem.</p>
<p>I did eventually come across an answer, and here it is &#8211; short, sweet, and to the point (unlike me :p).</p>
<pre class="brush: jscript;">
    var objCopy = this;
    this.myObjMethod.onclick = function(e) {
        objCopy.displayTimes(e);
    };
</pre>
<p>Source: <a href="http://paste.pocoo.org/show/131280/">http://paste.pocoo.org/show/131280/</a></p>
Posted in Advanced, Javascript, Thanks to Google =P  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=167&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/08/14/javascript-oop-event-handling-and-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>I&#8217;m not smart enough to parse Int(&#8217;s)</title>
		<link>http://codestar.wordpress.com/2009/08/13/im-not-smart-enough-to-parse-int/</link>
		<comments>http://codestar.wordpress.com/2009/08/13/im-not-smart-enough-to-parse-int/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 16:20:33 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Oops!]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=157</guid>
		<description><![CDATA[Oye,
So&#8230; I was creating a timepicker like that of Google&#8217;s calendar app for a client and lo and behold I ran into a fun yet hard to figure out Javascript problem.
Like a good little girl, I was using parseInt on my integers to ensure it was a proper integer. In this case, I was attempting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=157&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Oye,<br />
So&#8230; I was creating a timepicker like that of <a href="http://www.google.com/calendar/">Google&#8217;s calendar app</a> for a client and lo and behold I ran into a fun yet hard to figure out Javascript problem.</p>
<p>Like a good little girl, I was using <a href="http://www.w3schools.com/jsref/jsref_parseInt.asp">parseInt</a> on my integers to ensure it was a proper integer. In this case, I was attempting to grab the value that the user inputs as minutes (eg: x:(xx)) and convert that to an integer. Once I had this integer I would use it to create the time increments for the from time text box. This all worked fine and dandy until I came across :08 and :09 .</p>
<p>After much grief and debugging (thank you <a href="http://getfirebug.com/">Firebug</a>!), I finally figured out that it was indeed parseInt as the culprit. The problem? Javascript sets numbers that start at 0 as <a href="http://en.wikipedia.org/wiki/Octal">octal numbers</a> ( more info: <a href="http://www.javascripter.net/faq/octalsan.htm">http://www.javascripter.net/faq/octalsan.htm</a> ). And guess what? 08 ad 09 are not octal numbers. So&#8230; my parseInt function was doing all that I asked it to do &#8211; and ended up converting 08 and 09 to 0. </p>
<p>Two points to parseInt, parseInt(09) to me =(. I ended up changing it from a base 8 to a base 10 &#8211; which of course gave me my 08 and 09.</p>
<p><strong>Conclusion </strong>- always add the base to Javascripts parseInt. Unless of course you want octal or you won&#8217;t be using numbers with leading zeros.</p>
Posted in Advanced, Javascript, Oops!  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=157&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/08/13/im-not-smart-enough-to-parse-int/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>I love you ColdFusion, I love you not</title>
		<link>http://codestar.wordpress.com/2009/07/24/i-love-you-coldfusion-i-love-you-not/</link>
		<comments>http://codestar.wordpress.com/2009/07/24/i-love-you-coldfusion-i-love-you-not/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 14:21:08 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=150</guid>
		<description><![CDATA[Okay, so yesterday I was attempting to finish a lovely page where an administrator can edit emails. I wanted to send the form variables in on submit, but since there are hidden forms due to java script displaying each one separately, I wanted the submit to function with AJAX. This worked fine and dandy until [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=150&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Okay, so yesterday I was attempting to finish a lovely page where an administrator can edit emails. I wanted to send the form variables in on submit, but since there are hidden forms due to java script displaying each one separately, I wanted the submit to function with AJAX. This worked fine and dandy until I got the great idea of making it even better by using <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_t_02.html">CFtextarea</a> and <a href="http://www.fckeditor.net/">FCKeditor</a> which it comes with. Upon using  this, I found (to my dismay) that ColdFusion renamed the ID element. So no longer could I use getElementById to get my form field value, and <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxui_5.html">CFAjaxProxy&#8217;s setForm</a> function wasn&#8217;t working to nicely either. </p>
<p>My first idea was to use the &#8220;name&#8221; of the form field &#8211; even though it was generated dynamically. That was alot_of_fun 0.o. It ended up working, however when I would click on submit, it would send in the old value (seemingly cached somehow) and then send in the new one on a second click. This, of course, was not what I desired. So, in the end I found and now use the ColdFusion Ajax Javascript functions &#8211; which was as simple as :<br />
<strong><a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=JavaScriptFcns_04.html">ColdFusion.getElementValue(elementId [, formId, attributeName])</a></strong></p>
<p>Perhaps they should have placed this on the CFTextarea page as a reference of how to get the field value?</p>
Posted in ColdFusion, Intermediate, Javascript  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=150&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/07/24/i-love-you-coldfusion-i-love-you-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing a created firefox extension &#8211; it&#8217;s not showing up!</title>
		<link>http://codestar.wordpress.com/2009/07/15/testing-a-created-firefox-extension-its-not-showing-up/</link>
		<comments>http://codestar.wordpress.com/2009/07/15/testing-a-created-firefox-extension-its-not-showing-up/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 02:51:56 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[General code (aka - uncategorized)]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=147</guid>
		<description><![CDATA[As I was so merrily going through the Mozilla documentation for creating a plugin here: https://developer.mozilla.org/en/Building_an_Extension, I was dumbfounded when I followed the directions, and didn&#8217;t see the &#8220;Hello, World&#8221; in my status bar. Why oh why Windows are you doing this to me? Well, I found that it was of course, by my own [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=147&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As I was so merrily going through the Mozilla documentation for creating a plugin here: <a href="https://developer.mozilla.org/en/Building_an_Extension">https://developer.mozilla.org/en/Building_an_Extension</a>, I was dumbfounded when I followed the directions, and didn&#8217;t see the &#8220;Hello, World&#8221; in my status bar. <em>Why oh why Windows are you doing this to me?</em> Well, I found that it was of course, by my own error. When creating the test file in your extensions folder to point back to your extension, make sure that it has <strong>no file extension</strong>. This means, even when you create the file with your id (eg example@example.com), make sure the file is exactly example@example.com and not example@example.com.txt . Funny how something so small can have you going crazy for hours.</p>
Posted in General code (aka - uncategorized)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=147&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/07/15/testing-a-created-firefox-extension-its-not-showing-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Posting a tweet to Twitter from Coldfusion</title>
		<link>http://codestar.wordpress.com/2009/07/08/posting-a-tweet-to-twitter-from-coldfusion/</link>
		<comments>http://codestar.wordpress.com/2009/07/08/posting-a-tweet-to-twitter-from-coldfusion/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 15:24:40 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Intermediate]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=142</guid>
		<description><![CDATA[Posting a tweet couldn&#8217;t be any easier! In PHP you would use CURL to accomplish the same thing.


&#60;cfhttp url=&#34;http://twitter.com/statuses/update.xml&#34; method=&#34;post&#34; 
resolveurl=&#34;yes&#34; 
username=&#34;#username#&#34; 
password=&#34;#password#&#34;&#62;
&#60;cfhttpparam type=&#34;url&#34; name=&#34;status&#34; value=&#34;My API
Tweet!&#34;&#62;
&#60;/cfhttp&#62;


What&#8217;s going on?
Using the Twitter API documentation located here: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update, you send in  your username and password to the API URL. In this case, http://twitter.com/statuses/update.xml . After that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=142&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Posting a tweet couldn&#8217;t be any easier! In PHP you would use CURL to accomplish the same thing.</p>
<p><code>
<pre>
&lt;cfhttp url=&quot;http://twitter.com/statuses/update.xml&quot; method=&quot;post&quot; 
resolveurl=&quot;yes&quot; 
username=&quot;#username#&quot; 
password=&quot;#password#&quot;&gt;
&lt;cfhttpparam type=&quot;url&quot; name=&quot;status&quot; value=&quot;My API
Tweet!&quot;&gt;
&lt;/cfhttp&gt;
</pre>
<p></code></p>
<p><strong>What&#8217;s going on?</strong><br />
Using the Twitter API documentation located here: <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update">http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update</a>, you send in  your username and password to the API URL. In this case, http://twitter.com/statuses/update.xml . After that to send in the actual tweet content, you would use cfhttpparam.</p>
<p><strong>What are the limitations?</strong><br />
According to : <a href="http://help.twitter.com/forums/10711/entries/15364">http://help.twitter.com/forums/10711/entries/15364</a> , you can post:</p>
<blockquote><p># 1,000 total updates per day, on any and all devices (web, mobile web, phone, API, etc. )<br />
# 1,000 total direct messages per day, on any and all devices<br />
# 100 API requests per hour</p></blockquote>
<p>Also&#8230;</p>
<blockquote><p>Twitter will ignore attempts to perform a duplicate update. With each update attempt, the application compares the update text with the authenticating user&#8217;s last successful update, and ignores any attempts that would result in duplication. Therefore, a user cannot submit the same status twice in a row. The status element in the response will return the id from the previously successful update if a duplicate has been silently ignored.</p></blockquote>
<p>Either way, it&#8217;s pretty kewl =).</p>
Posted in ColdFusion, Intermediate  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=142&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/07/08/posting-a-tweet-to-twitter-from-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Server side validating fields</title>
		<link>http://codestar.wordpress.com/2009/07/01/server-side-validating-fields/</link>
		<comments>http://codestar.wordpress.com/2009/07/01/server-side-validating-fields/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 13:56:58 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=127</guid>
		<description><![CDATA[As many of us know by now, it is never best to only validate fields with client side code. You must also validate on the server. 
As I was writing code today for a multi-page form, I was trying to think of the best way to validate fields. Although the below is verbose and written [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=127&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As many of us know by now, it is never best to only validate fields with client side code. You <strong>must </strong><em>also </em>validate on the server. </p>
<p>As I was writing code today for a multi-page form, I was trying to think of the best way to validate fields. Although the below is verbose and written in ColdFusion, it can be easily ported to any other language that supports arrays, lists, or hashes &#8211; and it can be placed in one line if your language supports associative arrays.</p>
<p><strong>Required fields</strong></p>
<p>For this one I used:<br />
	<code>
<pre>&lt;cfset requiredFields = StructNew()&gt;
&lt;cfset requiredFields['name'] = 'Name'&gt;
&lt;cfset requiredFields['email'] = 'Email address'&gt;
&lt;cfset requiredFields['message'] = 'Message'&gt;
&lt;cfloop collection=&quot;#requiredFields#&quot; item=&quot;i&quot;&gt;
&nbsp;&nbsp;&lt;cfif NOT StructKeyExists(form, i) OR form[i] EQ ''&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;cfset session.errors[i] = 'Field &lt;strong&gt;&quot;' &amp; requiredFields[i] &amp; '&quot;&lt;/strong&gt; cannot
be empty.'&gt;
&nbsp;&nbsp;&lt;/cfif&gt;
&lt;/cfloop&gt;</pre>
<p></code></p>
<p>In this case,  the form variable is the name of the form field itself :</p>
<pre class="brush: xml;">requiredFields['email'] = &lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;
</pre>
<p>The value of that field is a more friendly name to display with the error messages.<br />
<em>Field <strong>Name</strong> cannot be empty.</em></p>
<p>The same type of structures are then setup for numbers, dates, emails, and whatever else may need to be validated. Each loop entry is added to the session.errors array to maintain the errors and then cleared upon re-calling the validation page.</p>
<p>The sessions array is displayed with:<br />
<code>
<pre>
&lt;cfif NOT StructIsEmpty(session.errors)&gt;
&lt;style type=&quot;text/css&quot;&gt;
&nbsp;&nbsp;li{margin-left:10px}
&lt;/style&gt;
&lt;ul class=&quot;errorBox&quot;&gt;
&nbsp;&nbsp;&lt;cfloop collection=&quot;#session.errors#&quot; item=&quot;i&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;cfoutput&gt;&lt;li&gt;#session.errors[i]#&lt;/li&gt;&lt;/cfoutput&gt;
&nbsp;&nbsp;&lt;/cfloop&gt;
&lt;/ul&gt;
&lt;/cfif&gt;
</pre>
<p></code><br />
Creating a list displaying the errors.</p>
<p>**Additionally, to make it an even better experience, you can add an error highlight color to the row that caused the error. For example:</p>
<pre class="brush: xml;">
&lt;td style=&quot;background-color:&lt;cfif StructKeyExists(session.errors, 'name')&gt;errorRow&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;&lt;/td&gt;
</pre>
<p>** If all of your fields are required, you can simply loop over the form fields and popuplate your errors array&#8230; but you may not have the friendly names.</p>
<p><strong>So, why should you validate with server side code?</strong><br />
While client side code such as Javascript makes the user experience much more enjoyable, there are several reasons to also validate on the server.</p>
<ul>
<li>Checking on the server can be more verbose and accurate, especially if you need to check against a query (although AJAX would do this as well)</li>
<li>Javascript can easily be turned off</li>
<li>YOUR Javascript code can be hacked since it is visible there on the page.</li>
<li>Your page can be copied completely, javascript removed, and submitted to the server.</li>
<li>Your Javascript may not work across all browsers and mobile devices.</li>
<li>Some coders make code inaccessible when they do not make sure the code works without Javascript</li>
</ul>
<p><strong>So why should you even use it?</strong></p>
<ul>
<li>It prevents a trip to the server</li>
<li>Your users will love you since things will work faster</li>
<li>You can do muchos with AJAX</li>
</ul>
Posted in Beginner, ColdFusion, PHP  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=127&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/07/01/server-side-validating-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple JQuery check-all</title>
		<link>http://codestar.wordpress.com/2009/06/17/simple-jquery-checkall/</link>
		<comments>http://codestar.wordpress.com/2009/06/17/simple-jquery-checkall/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 16:43:57 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=121</guid>
		<description><![CDATA[Simple check all with Jquery:

function checkAll(el, fieldName){
	var checkBoxes = $('input[name=' + fieldName + ']');
	var curValue = el.value;
	if(curValue == 'Check All'){
		$.each(checkBoxes, function() {this.checked = true});
		el.value = 'Uncheck All';
	} else {
		$.each(checkBoxes, function() {this.checked = false});
		el.value = 'Check All';
	}
}

How to use?
Pass in the &#8220;this&#8221; keyword as the first parameter. Second, pass in the name of the fields that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=121&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Simple check all with Jquery:</p>
<pre class="brush: jscript;">
function checkAll(el, fieldName){
	var checkBoxes = $('input[name=' + fieldName + ']');
	var curValue = el.value;
	if(curValue == 'Check All'){
		$.each(checkBoxes, function() {this.checked = true});
		el.value = 'Uncheck All';
	} else {
		$.each(checkBoxes, function() {this.checked = false});
		el.value = 'Check All';
	}
}
</pre>
<p><strong>How to use?</strong><br />
Pass in the &#8220;this&#8221; keyword as the first parameter. Second, pass in the name of the fields that contain the checkboxes. This works only if you set your check all button&#8217;s value to &#8216;Check All&#8217; (ways around this of course).</p>
<p><strong>What&#8217;s going on?</strong><br />
Jquery gets all of the elements on the page that are input and have the name attribute equal to the name you passed in. The <em>if</em> conditional checks to see if the value of the first parameter is equal to &#8216;Check All&#8217;. If it is, we iterate over each checkbox and set it to true. We then change the value to &#8216;uncheck all&#8217;. If the value of the first parameter is equal to &#8216;uncheck all&#8217; we set each checkbox to false, and reset the value to &#8216;check all&#8217;.</p>
Posted in Beginner, Javascript, Jquery  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=121&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/06/17/simple-jquery-checkall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript created selectbox with number selections in multiples</title>
		<link>http://codestar.wordpress.com/2009/06/16/javascript-created-selectbox-with-number-selections-in-multiples/</link>
		<comments>http://codestar.wordpress.com/2009/06/16/javascript-created-selectbox-with-number-selections-in-multiples/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 14:53:23 +0000</pubDate>
		<dc:creator>Tia</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://codestar.wordpress.com/?p=111</guid>
		<description><![CDATA[Creating a javascript select box with numbered selections in multiples:

var i;
var totalRows = 20;
var selectBox = document.getElementById('thisSelect');
for (i = 1; i &#60; = totalRows; i++ ){
	if( (i % 5) == false ){
		var newOption = new Option(i, i);
		selectBox.options.add(newOption);
	}
}

What's going on?
Initialize variables:

var i;
var totalRows = 20;
var selectBox = document.getElementById('thisSelect');
var newOption;

Loop over total rows:

for (i = 1; i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=111&subd=codestar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Creating a javascript select box with numbered selections in multiples:</p>
<pre class="brush: jscript;">
var i;
var totalRows = 20;
var selectBox = document.getElementById('thisSelect');
for (i = 1; i &lt; = totalRows; i++ ){
	if( (i % 5) == false ){
		var newOption = new Option(i, i);
		selectBox.options.add(newOption);
	}
}
</pre>
<p><code><strong>What's going on?</strong></p>
<p><em>Initialize variables:</em></p>
<pre class="brush: jscript;">
var i;
var totalRows = 20;
var selectBox = document.getElementById('thisSelect');
var newOption;
</pre>
<p><em>Loop over total rows:</em></p>
<pre class="brush: jscript;">
for (i = 1; i &amp;lt;= totalRows; i++ ){
...
}
</pre>
<p><em>Check if the current number divided by five returns 0 (loosely false).</em></p>
<pre class="brush: jscript;">
if( (i % 5) == false){
...
}
</pre>
<p><em>If so, add new option. Then add to selectbox:</em></p>
<pre class="brush: jscript;">
newOption = new Option(i, i);
selectBox.options.add(newOption);
</pre>
<p><em>*Alternatively use the DOM when creating the option by using CreateElement.</em></p>
<p><em>Result</em><br />
5<br />
10<br />
15<br />
20</p>
<p><em>How to add "all" selection?</em></p>
<pre class="brush: jscript;">
newOption = new Option('All [' + totalRows + ']', totalRows);
selectBox.options.add(newOption);
</pre>
<p><em>Final result</em><br />
All<br />
5<br />
10<br />
15<br />
20</p>
Posted in Beginner, Javascript  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codestar.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codestar.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codestar.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codestar.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codestar.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codestar.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codestar.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codestar.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codestar.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codestar.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codestar.wordpress.com&blog=5191122&post=111&subd=codestar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codestar.wordpress.com/2009/06/16/javascript-created-selectbox-with-number-selections-in-multiples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">beatificfaith</media:title>
		</media:content>
	</item>
	</channel>
</rss>