<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Yahoo API search with JavaScript alone</title>
	<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/</link>
	<description>Stoyan's blog about (x)html, ajax, bookmarklets, browsers, css, firebug, javascript, json, mdb2, mysql, pear, performance, php, phpbb, tools, yslow, yui, writing, music,... life and everything.</description>
	<pubDate>Fri, 16 May 2008 20:37:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: All in a days work&#8230;</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-61674</link>
		<pubDate>Sat, 28 Jul 2007 04:39:19 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-61674</guid>
					<description>[...] Yahoo API search with JavaScript alone The cool think about Y! web services is that they provide you different options for the output format of the results they return. You can get XML, php serialized string or JSON. (No SOAP, thank you very much!). [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Yahoo API search with JavaScript alone The cool think about Y! web services is that they provide you different options for the output format of the results they return. You can get XML, php serialized string or JSON. (No SOAP, thank you very much!). [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-49226</link>
		<pubDate>Thu, 08 Feb 2007 18:52:05 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-49226</guid>
					<description>Hi Craig,

You can use your Firebug (or view generated source) to see what happens.

Basically when you include the script, the result is something like:
&amp;#60;script src=&quot;http://provider.com/service.php?param=foo&amp;callback=fn&quot; ...

and the service responds with:
fn(the_result)

where:
- fn is the name of your callback function
- the_result is some JSON encoded data that the service returns you

So at the end in your page you have:
&amp;#60;script src=&quot;http://provider.com/service.php?param=foo&amp;callback=fn&quot;&amp;#62;
fn({foo:bar,poo:whatever})
&amp;#60;/script&amp;#62;</description>
		<content:encoded><![CDATA[<p>Hi Craig,</p>
<p>You can use your Firebug (or view generated source) to see what happens.</p>
<p>Basically when you include the script, the result is something like:<br />
&lt;script src="http://provider.com/service.php?param=foo&#038;callback=fn" &#8230;</p>
<p>and the service responds with:<br />
fn(the_result)</p>
<p>where:<br />
- fn is the name of your callback function<br />
- the_result is some JSON encoded data that the service returns you</p>
<p>So at the end in your page you have:<br />
&lt;script src="http://provider.com/service.php?param=foo&#038;callback=fn"&gt;<br />
fn({foo:bar,poo:whatever})<br />
&lt;/script&gt;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-49097</link>
		<pubDate>Tue, 30 Jan 2007 05:34:18 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-49097</guid>
					<description>Possibly dumb question, but how does the Yahoo service call the javascript callback function? I am trying to implement a similar service on my site but my site needs to call the callback function so I was wonder how they would implement this.</description>
		<content:encoded><![CDATA[<p>Possibly dumb question, but how does the Yahoo service call the javascript callback function? I am trying to implement a similar service on my site but my site needs to call the callback function so I was wonder how they would implement this.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-19311</link>
		<pubDate>Mon, 16 Oct 2006 13:21:52 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-19311</guid>
					<description>myf, good idea!</description>
		<content:encoded><![CDATA[<p>myf, good idea!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: myf</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-19273</link>
		<pubDate>Mon, 16 Oct 2006 10:55:58 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-19273</guid>
					<description>It works fine in FF.
What about making your searches linkable and 'parametrize' them in location.search (or more possibly in .hash) and then look for them in script?</description>
		<content:encoded><![CDATA[<p>It works fine in FF.<br />
What about making your searches linkable and 'parametrize' them in location.search (or more possibly in .hash) and then look for them in script?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18734</link>
		<pubDate>Fri, 13 Oct 2006 20:28:47 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18734</guid>
					<description>Hey BillyG, weird that it didn't work for you in FF, FF is what I use for development.</description>
		<content:encoded><![CDATA[<p>Hey BillyG, weird that it didn't work for you in FF, FF is what I use for development.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: BillyG</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18689</link>
		<pubDate>Fri, 13 Oct 2006 16:19:02 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18689</guid>
					<description>Nice job.

fyi: It worked for me in IE and Opera, but not FF.

I haven't had a chance to get into the YUI yet (just now getting brushed up on Flash), but it's good to know that there are lots of possibilities. 

Thx.</description>
		<content:encoded><![CDATA[<p>Nice job.</p>
<p>fyi: It worked for me in IE and Opera, but not FF.</p>
<p>I haven't had a chance to get into the YUI yet (just now getting brushed up on Flash), but it's good to know that there are lots of possibilities. </p>
<p>Thx.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sheer Indulgence - The Best That Money Can Buy - -- Centplus Tech</title>
		<link>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18562</link>
		<pubDate>Fri, 13 Oct 2006 07:59:42 +0000</pubDate>
		<guid>http://www.phpied.com/yahoo-api-search-with-javascript-alone/#comment-18562</guid>
					<description>[...] Yahoo API search with JavaScript aloneurl of the web search service this.web_url = &amp;#8220;http://api.search.yahoo. com/WebSearchService/V1/webSearch?&amp;#8221;; // ID of element that will // display the result this.where = &amp;#8216;&amp;#8217;; // is this an image search? this.image_search = false; &amp;#8230; [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Yahoo API search with JavaScript aloneurl of the web search service this.web_url = &#8220;http://api.search.yahoo. com/WebSearchService/V1/webSearch?&#8221;; // ID of element that will // display the result this.where = &#8216;&#8217;; // is this an image search? this.image_search = false; &#8230; [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
