<?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>Melbourne Web Developer, Website Design &#38; Development &#187; Ajax</title>
	<atom:link href="http://blog.koumei.net/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.koumei.net</link>
	<description>-(unichar) fn: (unichar)n{ return n ^ 0xFFFF004B == 0? n : [self fn:(n-0x1)]}</description>
	<lastBuildDate>Thu, 02 Jun 2011 02:46:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Virtuemart: Ajax Effect on IE 8 Fix List based on Virtuemart 1.1.3(stable release since 22, Jan)</title>
		<link>http://blog.koumei.net/2009/03/23/virtuemart-ajax-effect-in-ie-8-fix-list-based-on-virtuemart-113stable-release-since-22-jan/</link>
		<comments>http://blog.koumei.net/2009/03/23/virtuemart-ajax-effect-in-ie-8-fix-list-based-on-virtuemart-113stable-release-since-22-jan/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 13:27:54 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tech.]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[mooTools]]></category>
		<category><![CDATA[virtuemart]]></category>

		<guid isPermaLink="false">http://www.koumei.net/?p=286</guid>
		<description><![CDATA[Virtuemart utilizes Ajax mostly by mooTools. It works fine in many browsers except microsoft newly released browser IE 8. Especially when user try to add a product to shopping cart using Ajax, the mooPrompt (a pop-up window) fails, and nothing happen on that page&#8230; Maybe the first thing you are about to do is to [...]]]></description>
			<content:encoded><![CDATA[<p>Virtuemart utilizes Ajax mostly by mooTools. It works fine in many browsers except microsoft newly released browser IE 8. Especially when user try to add a product to shopping cart using Ajax, the mooPrompt (a pop-up window) fails, and nothing happen on that page&#8230; Maybe the first thing you are about to do is to upgrade mooTools. Yes, that&#8217;s seems a great idea, however mooTools&#8217;s updates from 1.11 to 1.21 is totally a nightmare for developer. Many things change, you have to revise the code manually for Virtuemart. </p>
<p>The following files should be updated (if you want to satisfy IE 8 users):</p>
<ul>
<li>\components\com_virtuemart\js\mootools\mootools-release-1.11.js  (update to 1.21)</li>
<li><strong>\components\com_virtuemart\js\mootools\mooPrompt.js</strong> (you have to revise it manually. Should change a lot of JS class definitions in accordance with mootools 1.21 syntax)</li>
<li>\components\com_virtuemart\js\slimbox (update to slimbox for mootools 1.21)</li>
<li><strong>\components\com_virtuemart\themes\default\theme.js</strong> (you have to revise it manually. Should fix a bug on line 59, change to <em>var timeoutID = setTimeout( &#8216;document.boxB.close()&#8217;, 3000 );</em>)</li>
</ul>
<p>Besides updating corresponding files, you can also disable Ajax function on the administration page. Or.. Wait until next stable release of VM). If you need the files above, just leave me a message, and I will pack them up for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2009/03/23/virtuemart-ajax-effect-in-ie-8-fix-list-based-on-virtuemart-113stable-release-since-22-jan/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>A Simple Rss2Json Service Released!</title>
		<link>http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/</link>
		<comments>http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 14:33:43 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tech.]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://www.koumei.net/?p=264</guid>
		<description><![CDATA[Now I simply add a Rss2Json service on my blog, it just return the very first post from the target website as JSON and, of course, the target should be RSS format. The reason why I create this interface is because I would like to utilize cool AJAX to obtain the content from my friend&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Now I simply add a Rss2Json service on my blog, it just return the very first post from the target website as JSON and, of course, the target should be RSS format. The reason why I create this interface is because I would like to utilize cool AJAX to obtain the content from my friend&#8217;s blog, yet the browser secure prevent me crossing the boundary to other domain. Could it be working using iFrame? Negative. The only approach to cross the border is using JSON.</p>
<p>The definition of my interface is:</p>
<p><strong>Name</strong>: Rss2JSon<br />
<strong>Interface</strong>: http://www.koumei.net/rss2json/<br />
<strong>Method</strong>: GET<br />
<strong>Parameter 1</strong>:  rss  &#8211; The URL of the rss content<br />
<strong>Parameter 2</strong>: cb &#8212; The javascript callback function<br />
<strong>Return</strong>: application/x-javascript<br />
<strong>Example</strong>: http://www.koumei.net/rss2json/?rss=http://www.blogjava.net/max/rss&amp;cb=&lt;callback&gt;  (A blog of my friend)</p>
<p>The callback function is very <strong><span style="font-family: mceinline;"><span style="text-decoration: underline;">significant</span></span></strong>. Don&#8217;t forget to define a callback JS function on your script. The definition of the callback function should be similar as below ( parameter rss is an object, containing &#8220;title&#8221;, &#8220;link&#8221; and &#8220;description&#8221; and so forth&lt;please go through RSS schema on item tag&gt;.)</p>
<p><em>&lt;script type=&#8221;text/javascript&#8221;&gt; </em></p>
<p><em>function myCallback(rss){<br />
    var title = rss["title"];   // or rss.title<br />
    var link = rss["link"];  // or rss.link<br />
    var desc = rss["description"];  // or rss.description.<br />
}</em></p>
<p><em>&lt;/script&gt;</em></p>
<p>Now, you can embed the script to wherever you need.<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://www.koumei.net/rss2json/?rss=http://www.blogjava.net/max/rss&amp;cb=myCallback&#8221;&gt;&lt;/script&gt; </p>
<p>Enjoy scripting.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

