<?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>Winn.ws &#187; Ajax</title>
	<atom:link href="http://winn.ws/archives/tag/ajax/feed" rel="self" type="application/rss+xml" />
	<link>http://winn.ws</link>
	<description>Standards-based design &#38; development</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:05:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>.live() and the future</title>
		<link>http://winn.ws/archives/343</link>
		<comments>http://winn.ws/archives/343#comments</comments>
		<pubDate>Sun, 18 Apr 2010 06:25:40 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=343</guid>
		<description><![CDATA[Just recently i seen this used by a co-worker, and did not know much about this. So I took some time and looked it up on the jQuery site docs. I was amazed by what it does, the .live() function will match any element now and in the future! This means if you .load() a [...]]]></description>
			<content:encoded><![CDATA[<p>Just recently i seen this used by a co-worker, and did not know much about this. So I took some time and looked it up on the jQuery site docs. I was amazed by what it does, the .live() function will match any element now and in the future! This means if you .load() a remote page in the .live() can match an element on that page as it&#8217;s loaded in!</p>
<blockquote><p>Attach a handler to the event for all elements which match the current selector, now or in the future. <a href="http://api.jquery.com/live/">jQuery &#8211; .live()</a></p></blockquote>
<p><strong>Some info on .live()</strong><br />
his method is a variation on the basic .bind() method for attaching event handlers to elements. When .bind() is called, the elements that the jQuery object refers to get the handler attached; elements that get introduced later do not, so they would require another .bind() call. For instance, consider the HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;body&gt;
  &lt;div class=&quot;clickme&quot;&gt;
    Click here
  &lt;/div&gt;
&lt;/body&gt;</pre></div></div>

<p>We can bind a simple click handler to this element:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickme'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// Bound handler called.</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>When the element is clicked, the handler is called. However, suppose that after this, another element is added:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div class=&quot;clickme&quot;&gt;Another target&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This new element also matches the selector .clickme, but since it was added after the call to .bind(), clicks on it will do nothing.</p>
<p>The .live() method provides an alternative to this behavior. If we bind a click handler to the target element using this method:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickme'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// Live handler called.</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>And then later add a new element:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div class=&quot;clickme&quot;&gt;Another target&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Then clicks on the new element will also trigger the handler.</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/343/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Loading content with JQuery</title>
		<link>http://winn.ws/archives/224</link>
		<comments>http://winn.ws/archives/224#comments</comments>
		<pubDate>Mon, 30 Mar 2009 19:14:34 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=224</guid>
		<description><![CDATA[Loading content via Ajax is quick and easy with JQuery. If you have never used jQuery before you might think twice about it!
Below is my html where we will load the content.

1
&#60;div id=&#34;LoadContent&#34;&#62;&#60;/div&#62;

Now lets look at the javascript needed to load a remote page in.

1
$&#40;&#34;#LoadContent&#34;&#41;.load&#40;&#34;path/to/remote/file.php&#34;&#41;;

After that is called the contents of &#8220;file.php&#8221; would be loaded [...]]]></description>
			<content:encoded><![CDATA[<p>Loading content via Ajax is quick and easy with JQuery. If you have never used jQuery before you might think twice about it!</p>
<p>Below is my html where we will load the content.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strct" style="font-family:monospace;">&lt;div id=&quot;LoadContent&quot;&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>Now lets look at the javascript needed to load a remote page in.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#LoadContent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;path/to/remote/file.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>After that is called the contents of &#8220;file.php&#8221; would be loaded into the div above! Quick and easy way to include item into your app. You may also pass variables to the page like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#LoadContent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;path/to/remote/file.php&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> <span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Greg&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Hope this small tool helps change your mind about JQuery!</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Ajax with .NET</title>
		<link>http://winn.ws/archives/177</link>
		<comments>http://winn.ws/archives/177#comments</comments>
		<pubDate>Tue, 04 Nov 2008 00:15:03 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[.NET 3.5 VB]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=177</guid>
		<description><![CDATA[Adding Ajax to an application is simple and easy! Ajax is a powerful tool and can make your application look and feel great!
First let’s start by adding a “Script Manager” to the page, now we only have to add this once so it’s best placed in your Master page. The Script Manager needs to be [...]]]></description>
			<content:encoded><![CDATA[<p>Adding Ajax to an application is simple and easy! Ajax is a powerful tool and can make your application look and feel great!</p>
<p>First let’s start by adding a “Script Manager” to the page, now we only have to add this once so it’s best placed in your Master page. The Script Manager needs to be placed between the form tags on your page like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>form id<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;form1&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;</span>asp<span style="color: #006600; font-weight: bold;">:</span>ScriptManager ID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;ScriptManager1&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;/</span>asp<span style="color: #006600; font-weight: bold;">:</span>ScriptManager<span style="color: #006600; font-weight: bold;">&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>form<span style="color: #006600; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>After that, we can now add Ajax to an item. Below I have added an “Update Panel” to a list view. Now every action that list view makes will be way of HTTP Requests “Ajax”!</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>asp<span style="color: #006600; font-weight: bold;">:</span>UpdatePanel ID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;UpdatePanel1&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;</span>ContentTemplate<span style="color: #006600; font-weight: bold;">&gt;</span>
        <span style="color: #006600; font-weight: bold;">&lt;</span>asp<span style="color: #006600; font-weight: bold;">:</span>ListView ID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;ListView1&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span> DataKeyNames<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;PostID&quot;</span> 
                DataSourceID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;ObjectDataSource1&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
            <span style="color: #008000;">' Your code here...</span>
        <span style="color: #006600; font-weight: bold;">&lt;/</span>asp<span style="color: #006600; font-weight: bold;">:</span>ListView<span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;/</span>ContentTemplate<span style="color: #006600; font-weight: bold;">&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>asp<span style="color: #006600; font-weight: bold;">:</span>UpdatePanel<span style="color: #006600; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/177/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winn Scriptatype: 1.7</title>
		<link>http://winn.ws/archives/169</link>
		<comments>http://winn.ws/archives/169#comments</comments>
		<pubDate>Wed, 15 Oct 2008 02:17:58 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=169</guid>
		<description><![CDATA[I wanted to re-cap the new adds in 1.7 for rails. The new method calls are as listed:

# Added V1.7b
textlink_do_fade
textlink_do_puff
textlink_do_blindup
textlink_do_dropout

You can build any of the above calls with:

textlink_do_fade&#40;'Link Text','divYouWantToUpdate',&#123;***&#125;,&#123;****&#125;&#41;

Visit the project for more info on how to use the latest methods and more. Winn Scriptatype project home page. at Ruby On Rails Railway.
]]></description>
			<content:encoded><![CDATA[<p>I wanted to re-cap the new adds in 1.7 for rails. The new method calls are as listed:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Added V1.7b</span>
textlink_do_fade
textlink_do_puff
textlink_do_blindup
textlink_do_dropout</pre></div></div>

<p>You can build any of the above calls with:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">textlink_do_fade<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'Link Text'</span>,<span style="color:#996600;">'divYouWantToUpdate'</span>,<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">***</span><span style="color:#006600; font-weight:bold;">&#125;</span>,<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">****</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>Visit the project for more info on how to use the latest methods and more. <a href="http://rubyonrailsrailway.com/winnscriptatype">Winn Scriptatype project home page.</a> at <a href="http://rubyonrailsrailway.com/">Ruby On Rails Railway</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/169/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinnScriptatype:Rails v1.7b</title>
		<link>http://winn.ws/archives/135</link>
		<comments>http://winn.ws/archives/135#comments</comments>
		<pubDate>Fri, 04 Apr 2008 03:18:55 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/135</guid>
		<description><![CDATA[I just released WinnScriptatype version 1.7 beta on the RubyForge project page. I have also made some fixes to version 1.5 and it is now production ready. The latest release has added some new functionality and the ability to make calls to display text. The call still supports the effects and Ajax request url along [...]]]></description>
			<content:encoded><![CDATA[<p>I just released WinnScriptatype version 1.7 beta on the RubyForge project page. I have also made some fixes to version 1.5 and it is now production ready. The latest release has added some new functionality and the ability to make calls to display text. The call still supports the effects and Ajax request url along with url options.</p>
<p>[ruby]<br />
# New calls in 1.7b<br />
textlink_do_fade<br />
textlink_do_puff<br />
textlink_do_blindup<br />
textlink_do_dropout<br />
[/ruby]</p>
<p>I expect i will be making the same update to the PHP version soon so keep an eye out for that!</p>
<p>Take a look at the <a href="http://rubyforge.org/projects/winnscriptatype/">WinnScriptatype:Rails RubyForge project page</a> and download the latest!</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winn Tracker 1.0 beta</title>
		<link>http://winn.ws/archives/134</link>
		<comments>http://winn.ws/archives/134#comments</comments>
		<pubDate>Thu, 03 Apr 2008 16:40:12 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Winn Tracker]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/134</guid>
		<description><![CDATA[It&#8217;s time to start tracking everything! Now you can with Winn Tracker; track downloads, page views, how many times a link or image or anything was clicked and, keep track of incoming links.
Very easy to use and start implementing right now! The system only takes one database table, and you can add this table to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>It&#8217;s time to start tracking everything!</strong> Now you can with Winn Tracker; track downloads, page views, how many times a link or image or anything was clicked and, keep track of incoming links.</p>
<p>Very easy to use and start implementing right now! The system only takes one database table, and you can add this table to a current database so no need to make a whole new database for this. Developer friendly, the system is object orientated using one class. Once the class is called it will send the information provided to the database, after that it&#8217;s all yours!</p>
<p><strong>Lets start go here to <a href="http://www.winn.ws/winn-tracker">download the latest Winn Tracker.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/134/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinnScriptatype:PHP v1.5 Available</title>
		<link>http://winn.ws/archives/133</link>
		<comments>http://winn.ws/archives/133#comments</comments>
		<pubDate>Mon, 31 Mar 2008 19:33:47 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/133</guid>
		<description><![CDATA[Call two effects for two different elements with one call. This option is now working in version 1.5! Simply make the call &#8220;checkbox_do&#8221; then add your effects like so:
[php]
checkbox_do_fade_and_appear(&#8216;div1&#8242;, &#8216;div2&#8242;, &#8216;***&#8217;, array(&#8216;userName&#8217; => &#8216;Bob&#8217;));
[/php]
Only change you will have to observe is the second element id input. In this case &#8220;div2&#8243; is the second element that [...]]]></description>
			<content:encoded><![CDATA[<p>Call two effects for two different elements with one call. This option is now working in version 1.5! Simply make the call &#8220;checkbox_do&#8221; then add your effects like so:</p>
<p>[php]<br />
checkbox_do_fade_and_appear(&#8216;div1&#8242;, &#8216;div2&#8242;, &#8216;***&#8217;, array(&#8216;userName&#8217; => &#8216;Bob&#8217;));<br />
[/php]</p>
<p>Only change you will have to observe is the second element id input. In this case &#8220;div2&#8243; is the second element that will receive the effect &#8220;appear&#8221;. Note that if your going to make the standard call for one effect it&#8217;s all still the same from version 1.0.</p>
<p>Check out the details and download <a href="http://www.winn.ws/scriptatypephp">WinnScriptatype:PHP v1.5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/133/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winn Scriptatype for PHP</title>
		<link>http://winn.ws/archives/132</link>
		<comments>http://winn.ws/archives/132#comments</comments>
		<pubDate>Sat, 29 Mar 2008 20:37:38 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/132</guid>
		<description><![CDATA[Thats right, i have converted the rails plugin to PHP. Now you can use the same functions in your next php application. This php class works the same way by creating a checkbox and on click it will call a script with Ajax that will update your database. On success it will return an effect [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Thats right, i have converted the rails plugin to PHP.</strong> Now you can use the same functions in your next php application. This php class works the same way by creating a checkbox and on click it will call a script with Ajax that will update your database. On success it will return an effect based on the &#8220;checkbox_do_&#8221; call you make.</p>
<blockquote><p>Visit the <a href="http://www.winn.ws/scriptatypephp">Winn Scriptatype:PHP</a> page, after that you can take a look at the latest nightly dump for the next version of this great script at our <a href="http://sourceforge.net/projects/winnscriptatype/" target="_blank">SourceForge project page.</a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Plugin: WinnScriptatype</title>
		<link>http://winn.ws/archives/129</link>
		<comments>http://winn.ws/archives/129#comments</comments>
		<pubDate>Thu, 27 Mar 2008 02:45:00 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/129</guid>
		<description><![CDATA[Making an Ajax checkbox just got easy. This very simple plugin was built for my own use. The idea was to make one call for my checkbox, update to the database, and an effect. This plugin is easy to use and install, i dont have it setup in an svn yet so you will need [...]]]></description>
			<content:encoded><![CDATA[<p>Making an Ajax checkbox just got easy. This very simple plugin was built for my own use. The idea was to make one call for my checkbox, update to the database, and an effect. This plugin is easy to use and install, i dont have it setup in an svn yet so you will need to download it and place it in RAILS_ROOT/vendor/plugins/HERE.</p>
<p>I had been working on this plugin for a few weeks in making a new application. I kept writing the &#8220;input, Ajax.Request and, Effect.Fade&#8221;, so i needed a way to make that fast and do what i need. And out came this handy plugin!</p>
<p>[ruby]<br />
# Lets use this new plugin<br />
checkbox_do_fade(&#8216;theDiv&#8217;, &#8216;CheckboxID&#8217;, {:controller => &#8216;todo&#8217;, :action => &#8216;finish&#8217;, :id => todo.id}, {:userid => user.id})</p>
<p>[/ruby]</p>
<h4><strong>Here is an over view of the options:</strong></h4>
<p>[ruby]<br />
checkbox_do_fade(&#8216;*&#8217;, &#8216;**&#8217;, {***}, {****})</p>
<p>[Element ID]* This is the name of the element you want to effect such as a div or table (tr,td)&#8230;</p>
<p>[Checkbox ID]** This is the id of the checkbox it self</p>
<p>[URL/path]*** this is the url for the update to take place NOTE: always use controller,<br />
              action, and id DO NOT place other variables in this block that is for the next block.</p>
<p>[URL/path options]**** This block is used for url options like so: (/path/to/1?userid=1) as you see<br />
                       userid is 1, this is done by using the url options block. You may send an unlimited number of<br />
                       url options with this.</p>
<p># Below are the ONLY supported calls<br />
checkbox_do_fade # This will fade the element<br />
checkbox_do_puff # This will puff the element<br />
checkbox_do_blindup # and so on&#8230;<br />
checkbox_do_dropout # again&#8230;<br />
[/ruby]</p>
<p>Ready to start using it? <a href="http://svn.winn.ws/winn_scriptatype.zip">Download WinnScriptatype</a></p>
<p>You will also need help installing this plugin so take a look at <a href="http://rubyonrailsrailway.com/winnscriptatype">Ruby on Rails Railway : WinnScriptatype</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/129/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Product: Winn Tracker</title>
		<link>http://winn.ws/archives/128</link>
		<comments>http://winn.ws/archives/128#comments</comments>
		<pubDate>Tue, 25 Mar 2008 14:25:32 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Winn Tracker]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/128</guid>
		<description><![CDATA[Something i have been working on for about three or four weeks now is something called &#8220;Winn Tracker&#8221;. This new product will have the ability to track page views, downloads and user information in your own custom application or website. Winn Tracker will allow you to make a call to the database to track info [...]]]></description>
			<content:encoded><![CDATA[<p>Something i have been working on for about three or four weeks now is something called &#8220;Winn Tracker&#8221;. This new product will have the ability to track page views, downloads and user information in your own custom application or website. Winn Tracker will allow you to make a call to the database to track info 3 ways.</p>
<blockquote>
<p>1. Direct Link (http://your domain.tld/pathto/tracker&#8230;)</p>
<p>2. PHP Class link ($a->hit(&#8216;info to send&#8217;,['userName' => 'Bob']);)</p>
<p>3. Ajax link, out of the three this is the preferred method of communication. I have build a new Javascript function on top of prototype to build the call and then use the Ajax.Request function. (Winnjs.Hit(&#8217;send info&#8217;,['username:Bob']))</p>
</blockquote>
<p>The first launch of this will be in just a few short days and then the full release will be in about a month. The first release of this will not have a backend tool for the admin area. Version 2 will have a full admin area where you can create the three above calls with options, with little programing experience.</p>
<p>This system will come light with only about 1.5 megs of files and only 3 tables to install to your mysql database. Version 2 will come with a full install script along with many more options for non developers to use.</p>
<p><strong>I will keep you posted on new changes to this and when it will launch.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/128/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/10 queries in 0.003 seconds using memcached
Content Delivery Network via Amazon Web Services: CloudFront: dhbbuddo7esu2.cloudfront.net

Served from: winn.ws @ 2010-09-09 22:36:05 -->