<?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>K. Aning&#039;s Web Log &#187; jquery</title>
	<atom:link href="http://blog.kaning.co.uk/archives/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.kaning.co.uk</link>
	<description>Web development for the inexperienced and mildly skilled</description>
	<lastBuildDate>Mon, 31 Oct 2011 10:20:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>a note on json_de/encode</title>
		<link>http://blog.kaning.co.uk/archives/193</link>
		<comments>http://blog.kaning.co.uk/archives/193#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:26:19 +0000</pubDate>
		<dc:creator>Kwabena Aning</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://blog.kaning.co.uk/?p=193</guid>
		<description><![CDATA[I just thought I should quickly post this note simply because I know a few people might have problems with parsing it with the above functions. I would like first to say that json_encode and json_decode are PHP 5.2.0+ methods &#8230; <a href="http://blog.kaning.co.uk/archives/193">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just thought I should quickly post this note simply because I know a few people might have problems with parsing it with the above functions.</p>
<p>I would like first to say that json_encode and json_decode are PHP 5.2.0+ methods of parsing and dealing with Javascript Simple Object Notation. basically looks a bit like this {&#8220;key&#8221;:&#8221;value&#8221;}. The idea is to be able to do useful things with objects like these and stepping through the key and value pairs while doing something with them.</p>
<p>The problem however is you sometimes get JSON sent as a string through an HTTP method like $_POST and the quotes in there are automatically (well in my case). escaped with backslashes like this {\&#8221;jsonkey\&#8221;:\&#8221;jsonvalue\&#8221;}. Before you actually call json_decode on your json data use the built in stripslashes function first. so your code should look like this in one line</p>
<p>$json_array = json_decode(stripslashes($jsonObject));</p>
<p>hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kaning.co.uk/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bug with fcbkcomplete when loading through ajax</title>
		<link>http://blog.kaning.co.uk/archives/186</link>
		<comments>http://blog.kaning.co.uk/archives/186#comments</comments>
		<pubDate>Tue, 01 Dec 2009 16:52:34 +0000</pubDate>
		<dc:creator>Kwabena Aning</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://blog.kaning.co.uk/?p=186</guid>
		<description><![CDATA[If you find that your jquery autocomplete plug-in specifically the fcbkcomplete variant works nicely when you load the entire document, but doesn&#8217;t work when you make requests through ajax to display the content in a dv tag, you might want &#8230; <a href="http://blog.kaning.co.uk/archives/186">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you find that your <a title="FCBKComplete" href="http://www.emposha.com/javascript/fcbkcomplete.html" target="_blank">jquery autocomplete plug-in specifically the fcbkcomplete</a> variant works nicely when you load the entire document, but doesn&#8217;t work when you make requests through ajax to display the content in a dv tag, you might want to try this.</p>
<p>Basically if it&#8217;s inited in a page that was requested through ajax with content passed into a div tag. It doesn&#8217;t display the autocomplete suggestions. I found this but to be caused by width being set to &#8220;0px&#8221; in the message_to_feed &lt;li&gt; attribute.</p>
<p>My workaround for this was to add<br />
feed.css(&#8220;width&#8221;, &#8220;512px&#8221;); // set to default width</p>
<p>on lines 407, and 416 in jquery.fcbkcomplete.js.</p>
<p>I have commented on this on the <a title="fcbkcomplete developers site" href="http://www.emposha.com/javascript/fcbkcomplete.html" target="_blank">developers site</a> hope he picks it up.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kaning.co.uk/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

