<?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>Working Beta &#187; AJAX</title>
	<atom:link href="http://seeds.workingbeta.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://seeds.workingbeta.com</link>
	<description>a bounch of nearly working code</description>
	<lastBuildDate>Wed, 10 Feb 2010 21:25:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ready&#8230; set&#8230; go!</title>
		<link>http://seeds.workingbeta.com/2009/05/14/ready-set-go/</link>
		<comments>http://seeds.workingbeta.com/2009/05/14/ready-set-go/#comments</comments>
		<pubDate>Thu, 14 May 2009 18:44:22 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[RAD]]></category>
		<category><![CDATA[VISUAL PHP]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=49</guid>
		<description><![CDATA[Hi all,
so much time since my last post! I&#8217;ve been involved into so many interesting projects that I could&#8217;t even login.
In the meantime a brand new side project idea is born.. All stats looking at the bleeding edge of the CMS/CMR/Framework panorama that I&#8217;ve encountered in the last month. None of them is really well [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,<br />
so much time since my last post! I&#8217;ve been involved into so many interesting projects that I could&#8217;t even login.</p>
<p>In the meantime a brand new side project idea is born.. All stats looking at the bleeding edge of the CMS/CMR/Framework panorama that I&#8217;ve encountered in the last month. None of them is really well suite for rapid application developement in  L(W)AMP environments. What is missing actually is a real visual IDE that fits into your browsers, and helps you deploy a consisten, secure, fast paced application starting from a simple set of tables/relations.</p>
<p>Something like the old visual basic stuff, but integrated with all the latest AJAX widgets and user experience. why should people still develop every single template/form/interface instead of simply concentrate in business logic?</p>
<p>so stay tuned, first lines of code are ready, as usual with prototype &amp; usual suspects in the frontline.<br />
I will publish one module/element/schema/idea per week, any help is greatly appreciated!!</p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2009/05/14/ready-set-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fast Ajax reloaded</title>
		<link>http://seeds.workingbeta.com/2009/01/26/fast-ajax-reloaded/</link>
		<comments>http://seeds.workingbeta.com/2009/01/26/fast-ajax-reloaded/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 11:59:54 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[event-observer]]></category>
		<category><![CDATA[fast ajax]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=46</guid>
		<description><![CDATA[just like my previous script, but with a neat support for &#60;form&#62; tags.
As previous script did, just add TARGET attribute with the ID of your AJAX target.
window.onload=function(){
Event.observe(document.body, &#8216;click&#8217;, function(event) {
var element = Event.element(event);
if (&#8217;A&#8217; == element.tagName){
if ($(element.target) != undefined){
new Ajax.Updater(element.target,element.href,
{method:&#8221;post&#8221;,evalscripts:true})
Event.stop(event);
}
}
});
formz=document.getElementsByTagName(&#8221;form&#8221;);
for (i=0;i&#60;formz.length;i++){
if ( formz[i].target!=undefined &#38;&#38; formz[i].id!= &#8220;&#8221;){
el=formz[i].id
tar=formz[i].target
Event.observe(formz[i].id, &#8217;submit&#8217;, function(event) {
$(el).request({
onSuccess: function(t) {
$(tar).update(t.responseText);
}
})
});
}
}
}
]]></description>
			<content:encoded><![CDATA[<p>just like my <a href="http://seeds.workingbeta.com/2008/11/19/fast-iframe-like-ajax-implementation/">previous</a> script, but with a neat support for &lt;form&gt; tags.<br />
As previous script did, just add TARGET attribute with the ID of your AJAX target.</p>
<p>window.onload=function(){<br />
Event.observe(document.body, &#8216;click&#8217;, function(event) {<br />
var element = Event.element(event);<br />
if (&#8217;A&#8217; == element.tagName){<br />
if ($(element.target) != undefined){<br />
new Ajax.Updater(element.target,element.href,<br />
{method:&#8221;post&#8221;,evalscripts:true})<br />
Event.stop(event);<br />
}</p>
<p>}<br />
});<br />
formz=document.getElementsByTagName(&#8221;form&#8221;);<br />
for (i=0;i&lt;formz.length;i++){<br />
if ( formz[i].target!=undefined &amp;&amp; formz[i].id!= &#8220;&#8221;){<br />
el=formz[i].id<br />
tar=formz[i].target<br />
Event.observe(formz[i].id, &#8217;submit&#8217;, function(event) {<br />
$(el).request({<br />
onSuccess: function(t) {<br />
$(tar).update(t.responseText);<br />
}<br />
})</p>
<p>});<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2009/01/26/fast-ajax-reloaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fast IFRAME-like ajax implementation</title>
		<link>http://seeds.workingbeta.com/2008/11/19/fast-iframe-like-ajax-implementation/</link>
		<comments>http://seeds.workingbeta.com/2008/11/19/fast-iframe-like-ajax-implementation/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 14:57:52 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[events]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=23</guid>
		<description><![CDATA[Yes, whe know, W3C specs garbaged all the nice IFRAMES that fitted so nicely in our pages. Ajax helped a lot but even if you used Prototye or some other ajax flavoured framework there was soo much work to do; each single link needed an event listener, some tweaking and so on.
After messing up with [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, whe know, W3C specs garbaged all the nice IFRAMES that fitted so nicely in our pages. Ajax helped a lot but even if you used Prototye or some other ajax flavoured framework there was soo much work to do; each single link needed an event listener, some tweaking and so on.</p>
<p>After messing up with some application requiring a huge number of ajax calls, I ended up thinking about this little piece of code:</p>
<blockquote>
<p><code></p>
<p>window.onload=function(){<br />
Event.observe(document.body, 'click', function(event) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;var element = Event.element(event);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if ('A' == element.tagName){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($(element.target) != undefined){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new Ajax.Updater(element.target,element.href,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{method:"post",evalscripts:true})<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Event.stop(event);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
}</code></p>
</blockquote>
<p>basically, this 10-line worth trick sets an event listener on every click. If   you click on a &#8216;a&#8217; with a target attribute set up, it starts an Ajax.Updater call on it.<br />
you can of course add GET parameters and feed .php, and of course javascript code is parsed as well..<br />
the complete seed [just a .htm and .php example file added] can be downloaded <a href="http://workingbeta.com/seeds/fastAjax.zip">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2008/11/19/fast-iframe-like-ajax-implementation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
