<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: AJAX JSON and Accessibility</title>
	<atom:link href="http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/</link>
	<description>Resources for librarians who are interested in the application of web design and technologies in libraries</description>
	<pubDate>Wed, 07 Jan 2009 21:31:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brad</title>
		<link>http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/comment-page-1/#comment-62830</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 18 Jul 2008 01:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/?p=750#comment-62830</guid>
		<description>My bad -
Scratch the "echo $G_json;" -- For a funny reason, I do some processing on the server side, then handle markup and presentation with client-side scripts. The code below it was commented-out.

Also, it looks like my html markup got eaten.
Anyway, you can do most anything with SimpleXML easier, so if they expose an XML API, that's probably the way to go.</description>
		<content:encoded><![CDATA[<p>My bad -<br />
Scratch the &#8220;echo $G_json;&#8221; &#8212; For a funny reason, I do some processing on the server side, then handle markup and presentation with client-side scripts. The code below it was commented-out.</p>
<p>Also, it looks like my html markup got eaten.<br />
Anyway, you can do most anything with SimpleXML easier, so if they expose an XML API, that&#8217;s probably the way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/comment-page-1/#comment-62828</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 18 Jul 2008 00:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/?p=750#comment-62828</guid>
		<description>Is it the TOS for those APIs that limits you to server-side, or simply the inclusion of a javascript wrapper?

[$Gstring contains a well-formed URL]

$G_json = file_get_contents($Gstring);

echo $G_json;

$G_json = str_replace("var _GBSBookInfo =","",$G_json);

$G_json = str_replace(";","",$G_json);

$G_json = str_replace("\\x26","&#38;",$G_json);

$G_json = trim($G_json);



$value = new Services_JSON(SERVICES_JSON_LOOSE_TYPE); 

$G_data= $value-&#62;decode($G_json);



 foreach ($G_data as $v1)

	{

	if($v1['preview'] == "full" &#38;&#38; strlen($v1['thumbnail_url']) &#62; 1)

		{

		echo "&lt;a&gt;\r\n\r\n&lt;/a&gt;\r\n\r\n";

		}

	else if($v1['preview'] == "partial" &#38;&#38; strlen($v1['thumbnail_url']) &#62; 1)

		{

		echo "&lt;a&gt;\r\n\r\n&lt;/a&gt;\r\n\r\n";

		}

	}

It's a mess, but it handles GBS on the server side...</description>
		<content:encoded><![CDATA[<p>Is it the TOS for those APIs that limits you to server-side, or simply the inclusion of a javascript wrapper?</p>
<p>[$Gstring contains a well-formed URL]</p>
<p>$G_json = file_get_contents($Gstring);</p>
<p>echo $G_json;</p>
<p>$G_json = str_replace(&#8221;var _GBSBookInfo =&#8221;,&#8221;",$G_json);</p>
<p>$G_json = str_replace(&#8221;;&#8221;,&#8221;",$G_json);</p>
<p>$G_json = str_replace(&#8221;\\x26&#8243;,&#8221;&amp;&#8221;,$G_json);</p>
<p>$G_json = trim($G_json);</p>
<p>$value = new Services_JSON(SERVICES_JSON_LOOSE_TYPE); </p>
<p>$G_data= $value-&gt;decode($G_json);</p>
<p> foreach ($G_data as $v1)</p>
<p>	{</p>
<p>	if($v1['preview'] == &#8220;full&#8221; &amp;&amp; strlen($v1['thumbnail_url']) &gt; 1)</p>
<p>		{</p>
<p>		echo &#8220;<a>\r\n\r\n</a>\r\n\r\n&#8221;;</p>
<p>		}</p>
<p>	else if($v1['preview'] == &#8220;partial&#8221; &amp;&amp; strlen($v1['thumbnail_url']) &gt; 1)</p>
<p>		{</p>
<p>		echo &#8220;<a>\r\n\r\n</a>\r\n\r\n&#8221;;</p>
<p>		}</p>
<p>	}</p>
<p>It&#8217;s a mess, but it handles GBS on the server side&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/comment-page-1/#comment-62654</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Thu, 19 Jun 2008 21:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/?p=750#comment-62654</guid>
		<description>Jonathan,
Let me know how that works out. My understanding is that it is limited to client-side for load reasons. I can understand being worried about load issue, but I don't understand why a client-side script would create less load issues than a server-side script. Any thoughts from others on this?</description>
		<content:encoded><![CDATA[<p>Jonathan,<br />
Let me know how that works out. My understanding is that it is limited to client-side for load reasons. I can understand being worried about load issue, but I don&#8217;t understand why a client-side script would create less load issues than a server-side script. Any thoughts from others on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rochkind</title>
		<link>http://www.librarywebchic.net/wordpress/2008/06/18/ajax-json-and-accessibility/comment-page-1/#comment-62653</link>
		<dc:creator>Jonathan Rochkind</dc:creator>
		<pubDate>Thu, 19 Jun 2008 21:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/?p=750#comment-62653</guid>
		<description>Heh, if you understand why this is, can you let the rest of us in?

This is continually frustrating to me too, for a variety of reasons. I think I plan to _try_ using the GBS API from the server-side, even though it's not entirely clear whether Google wants me to or not at present.</description>
		<content:encoded><![CDATA[<p>Heh, if you understand why this is, can you let the rest of us in?</p>
<p>This is continually frustrating to me too, for a variety of reasons. I think I plan to _try_ using the GBS API from the server-side, even though it&#8217;s not entirely clear whether Google wants me to or not at present.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
