<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <author>
    <name>danm</name>
    <uri>http://www.freebase.com:80/view/user/danm</uri>
  </author>
    <generator uri="http://www.freebase.com/">Freebase Atom Feed Generator</generator>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000042b09d1</id>
    <link rel="self" href="http://www.freebase.com:80/feed/discuss/topic/guid/9202a8c04000641f80000000042b09d1"/>
    <title>Advanced search functions</title>
    <updated>2008-08-28T19:00:26Z</updated>
  <entry>
    <author>
    <name>daepark</name>
    <uri>http://www.freebase.com:80/view/user/daepark</uri>
  </author>
    <content type="html">&lt;p&gt;Something like:&lt;br /&gt;&lt;br /&gt;$(&amp;quot;myinput&amp;quot;).freebaseSuggest({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter: function(data, prefix) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (data.image)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ac_param: {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: &amp;quot;/common/topic&amp;quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start: 0,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; limit: 100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;By default, we're retrieving the first 20 results from the search API. You may want to increase that number (to 100) so that after you apply your filter, you get more results.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008315054</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008315054" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Something like:$(&amp;quot;myinput&amp;quot;).freebaseSuggest({&amp;nbsp;&amp;nbsp;&amp;nbsp; filter: function(data,...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-15T19:29:34.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;p&gt;Can you provide an example on how to use filter ?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Sreedhar Ambati&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008196eba</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008196eba" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Hi Thanks for your help. Can you provide an example on how to use filter ? Thanks Sreedhar Ambati&amp;nbsp; ...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-07T07:52:59.0000Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;After a bit more research, at this point, the autocomplete service does not support anything other than what is listed in the autocomplete &lt;a href="http://code.google.com/p/freebase-suggest/wiki/FreebaseAPISearch"&gt;API&lt;/a&gt;.&amp;nbsp; However, you &lt;em&gt;may&lt;/em&gt; be able to work around your problem by using filter, as documented &lt;a href="http://code.google.com/p/freebase-suggest/wiki/Usage"&gt;here&lt;/a&gt;.&amp;nbsp; We hope to add support MQL queries within autocomplete sometime in the future, so stay tuned for that development.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000813e9d2</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000813e9d2" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html"/>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-06T21:32:55.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;Hi Cheunger&amp;nbsp;,&lt;/p&gt;&lt;p&gt;You are right.&lt;/p&gt;&lt;p&gt;My&amp;nbsp;intention is I want to display suggestions in the textbox which are having images.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I wrote code like this (in the below).&lt;/p&gt;&lt;p&gt;But the problem is it is not solving my purpose.&lt;/p&gt;&lt;p&gt;Can you please check it once and tell me where I went wrong?&lt;/p&gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;html&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;xmlns&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;xml&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;:&lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;lang&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;en&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;lang&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;en&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#a31515"&gt;xmlns&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;:&lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;freebase&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;http://freebase.com/&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;head&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;meta&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;http-equiv&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;Content-Type&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;content&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/html; charset=utf-8&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;link&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/css&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;rel&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;stylesheet&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;href&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;../dist/css/freebase-controls.css&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;src&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;http://code.jquery.com/jquery-nightly.pack.js&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;src&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;../dist/freebase.suggest.js&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;style&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/css&amp;quot;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#a31515"&gt;.fbs-li-types&lt;/font&gt;&lt;font size="2"&gt; { &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;display&lt;/font&gt;&lt;font size="2"&gt;:&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;none&lt;/font&gt;&lt;font size="2"&gt;; } &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;style&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;jQuery(&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt;($) {&lt;p&gt;$(&lt;font size="2" color="#a31515"&gt;&amp;quot;#Text1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;p&gt;.freebaseSuggest({&lt;font size="2" color="#a31515"&gt;'/common/topic/image'&lt;/font&gt;&lt;font size="2"&gt;:[{id:&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;null&lt;/font&gt;&lt;font size="2"&gt;}]})&lt;p&gt;.bind(&lt;font size="2" color="#a31515"&gt;&amp;quot;fb-select&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt;(e, data) { &lt;p&gt;mylog(&lt;font size="2" color="#a31515"&gt;&amp;quot;select id: &amp;quot;&lt;/font&gt;&lt;font size="2"&gt; , data.id , &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;, name: &amp;quot;&lt;/font&gt;&lt;font size="2"&gt; , data.name, data);&lt;p&gt;})&lt;/p&gt;&lt;p&gt;.bind(&lt;font size="2" color="#a31515"&gt;&amp;quot;fb-submit&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt;(e, data) {&lt;p&gt;mylog(&lt;font size="2" color="#a31515"&gt;&amp;quot;submit id: &amp;quot;&lt;/font&gt;&lt;font size="2"&gt; , data.id , &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;, name: &amp;quot;&lt;/font&gt;&lt;font size="2"&gt; , data.name, data);&lt;p&gt;}); &lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; mylog() {&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; msg = &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;$.each(arguments, &lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt;(i,n) {&lt;p&gt;msg += n;&lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (msg) {&lt;p&gt;$(&lt;font size="2" color="#a31515"&gt;&amp;quot;#msg&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).append(&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;lt;li&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + msg + &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;lt;/li&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;p&gt;}&lt;/p&gt;&lt;p&gt;};&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;head&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;body&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;Text1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;body&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;html&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;Thanks&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;Sreedhar Ambati&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;http://ambatisreedhar.spaces.live.com&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008133c49</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008133c49" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Hi Cheunger&amp;nbsp;, You are right. My&amp;nbsp;intention is I want to display suggestions in the textbox...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-06T09:14:55.0000Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Images and descriptions are displayed in the flyout if the topic has them. &lt;/p&gt;&lt;p&gt;However, if I understand your question correctly, you want to only retrieve topics that have an image.&amp;nbsp; This can be done in your suggest query where you can constrain results returned by also trying to return the image id for /common/topic/image . &lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000811dc7b</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000811dc7b" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Images and descriptions are displayed in the flyout if the topic has them.  However, if I understand...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-05T17:18:35.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Hi Cheunger,&lt;/p&gt;&lt;p&gt;How to retrieve the suggestions which have images on the top left side from the autosuggest feature of the textbox ?&lt;/p&gt;&lt;p&gt;How to tweak this?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Sreedhar Ambati&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008117c31</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008117c31" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html"/>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-05-05T12:51:10.0000Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Sreedhar,&lt;/p&gt;&lt;p&gt;I would suggest looking at the auto-complete examples.&amp;nbsp; You can download the latest freebase-suggest &lt;a href="http://code.google.com/p/freebase-suggest/"&gt;here&lt;/a&gt;.&amp;nbsp; The website has live examples, and there are also examples included in the zip archive itself.&amp;nbsp; You can use the type that the user selects in your third select box as the constraint for the autocomplete query. &lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000806df02</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000806df02" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Sreedhar, I would suggest looking at the auto-complete examples.&amp;nbsp; You can download the latest...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-04-24T17:05:51.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Thanks for the support.&lt;/p&gt;&lt;p&gt;I could able to progress better.&lt;/p&gt;&lt;p&gt;I have three dropdowns , a textbox, two buttons.&lt;/p&gt;&lt;p&gt;On page load none of the dropdowns have values.&lt;/p&gt;&lt;p&gt;On click of categories button first dropdown gets values with &amp;quot;arts and science,sports,movies etc&amp;quot;&lt;/p&gt;&lt;p&gt;On change of first dropdown second dropdown gets values.On change of second third dropdown gets values.&lt;/p&gt;&lt;p&gt;Upto this I completed.&lt;/p&gt;&lt;p&gt;Now user searches for a text and clicks on search button. I was struck up here as I dont know how to write the query here.&lt;/p&gt;&lt;p&gt;Based on the third dropdown and the textbox inputs I have to show the result with autocomplete feature too.&lt;/p&gt;&lt;p&gt;How to do that?&lt;/p&gt;&lt;p&gt;I&amp;nbsp;am providing my code below:&lt;/p&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;src&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;metaweb.js&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;src&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;json.js&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;function&lt;font size="2"&gt; LoadCategories() &lt;p&gt;{&lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;Loading...&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; query = [{ name: &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;null&lt;/font&gt;&lt;font size="2"&gt;, type: &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;'/freebase/domain_category'&lt;/font&gt;&lt;font size="2"&gt; }];&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Metaweb.read(query, displayCategories);&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; displayCategories(result) &lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (!result)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;Unknown:&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;return&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;for&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; result.length; i++)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;addOption(document.getElementById(&lt;font size="2" color="#a31515"&gt;'drpCategoryValues'&lt;/font&gt;&lt;font size="2"&gt;),result[i].name, result[i].name);&lt;p&gt;}&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; addOption(selectbox,text,value)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; optn = document.createElement(&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;OPTION&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;); &lt;p&gt;optn.text = removeJunk(text);&lt;/p&gt;&lt;p&gt;optn.value = removeJunk(text);&lt;/p&gt;&lt;p&gt;selectbox.options.add(optn);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; removeJunk(text)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;if&lt;/font&gt;&lt;font size="2"&gt;(text.search(/&amp;amp;amp;/)&amp;gt;0)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;text = text.replace(/amp;/,&lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;return&lt;/font&gt;&lt;font size="2"&gt; text;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; removeAllOptions(selectbox)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;for&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; i= selectbox.options.length-1;i&amp;gt;=0;i--)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;selectbox.remove(i);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;function&lt;font size="2"&gt; LoadSubCategories()&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; selectedValue = document.getElementById(&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;'drpCategoryValues'&lt;/font&gt;&lt;font size="2"&gt;).value;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; query = [{ domains:[], name: selectedValue, type: &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;'/freebase/domain_category'&lt;/font&gt;&lt;font size="2"&gt; }];&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Metaweb.read(query, displayNames);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; displayNames(result) &lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (!result)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;Unknown&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;return&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;removeAllOptions(document.getElementById(&lt;font size="2" color="#a31515"&gt;'drpSubCategoryValues'&lt;/font&gt;&lt;font size="2"&gt;))&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;for&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; result[0].domains.length; i++)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;addOption(document.getElementById(&lt;font size="2" color="#a31515"&gt;'drpSubCategoryValues'&lt;/font&gt;&lt;font size="2"&gt;),result[0].domains[i], result[0].domains[i]);&lt;p&gt;}&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; LoadTypes()&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;debugger&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; selectedValue = document.getElementById(&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;'drpSubCategoryValues'&lt;/font&gt;&lt;font size="2"&gt;).value;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; query = [{ types:[{name:&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;null&lt;/font&gt;&lt;font size="2"&gt;}],name: selectedValue, type: &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;'/type/domain'&lt;/font&gt;&lt;font size="2"&gt; }];&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Metaweb.read(query, displayTypes);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;function&lt;/font&gt;&lt;font size="2"&gt; displayTypes(result) &lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (!result)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;Unknown&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;return&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;divList.innerHTML = &lt;font size="2" color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;p&gt;removeAllOptions(document.getElementById(&lt;font size="2" color="#a31515"&gt;'drpTypes'&lt;/font&gt;&lt;font size="2"&gt;))&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;for&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;var&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; result[0].types.length; i++)&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;addOption(document.getElementById(&lt;font size="2" color="#a31515"&gt;'drpTypes'&lt;/font&gt;&lt;font size="2"&gt;),result[0].types[i].name, result[0].types[i].name);&lt;p&gt;}&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;function&lt;font size="2"&gt; Search()&lt;p&gt;{&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;script&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;html&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;head&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;head&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;&lt;font size="2" color="#a31515"&gt;body&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;div&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;divList&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;div&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;drpCategoryValues&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;size&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=5&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;runat&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;onchange&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;LoadSubCategories(this);&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;value&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;Categories&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;btn&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;onclick&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;LoadCategories()&amp;quot;/&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;drpSubCategoryValues&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;size&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=5&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;runat&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;onchange&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;LoadTypes(this);&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;drpTypes&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;size&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=5&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;runat&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;select&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;text&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;txtSearch&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;type&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;value&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;Search&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;id&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;btnSearch&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#ff0000"&gt;onclick&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;=&amp;quot;Search()&amp;quot;/&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;body&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;&amp;lt;/&lt;font size="2" color="#a31515"&gt;html&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;&amp;gt;&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;Sreedhar Ambati&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000806daf0</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000806daf0" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">Hi Thanks for the support. I could able to progress better. I have three dropdowns , a textbox, two...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-04-24T13:15:17.0000Z</updated>
  </entry><entry>
    <author>
    <name>crism</name>
    <uri>http://www.freebase.com:80/view/user/crism</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Sreedhar,&lt;/p&gt;&lt;p&gt;Please read my previous reply. Your working example uses &lt;strong&gt;Metaweb.read()&lt;/strong&gt; and does not include a &lt;strong&gt;query&lt;/strong&gt; key. Your non-working example includes a &lt;strong&gt;query&lt;/strong&gt; key; if you are still using &lt;strong&gt;Metaweb.read()&lt;/strong&gt;, that will not work. &lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000801ac4c</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000801ac4c" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html"/>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-04-21T14:45:52.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New'"&gt;I am Sreedhar Ambati. Recently started working on Freebase API.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New'"&gt;I want to list down all the categories like &amp;ldquo;Arts&amp;nbsp; &amp;amp; entertainment,society,sports,Porducts &amp;amp; services,Money etc.. in a dropdown .&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New'"&gt;I tested with this below code: Which displays albums by the specified band eg: Backstreet Boys&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;script&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt; &lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;src&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;metaweb.js&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt; &lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;src&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;json.js&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;script&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;function&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt; listalbums() &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;{&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; band = document.getElementById(&lt;span style="color: #a31515"&gt;&amp;quot;TypeText&amp;quot;&lt;/span&gt;).value;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; albumlist = document.getElementById(&lt;span style="color: #a31515"&gt;&amp;quot;albumlist&amp;quot;&lt;/span&gt;);&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; albumlist.innerHTML = &lt;span style="color: #a31515"&gt;&amp;quot;Loading...&amp;quot;&lt;/span&gt; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; query = &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: &lt;span style="color: #a31515"&gt;&amp;quot;/music/artist&amp;quot;&lt;/span&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: band,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; album: [{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name:&lt;span style="color: blue"&gt;null&lt;/span&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; release_date:&lt;span style="color: blue"&gt;null&lt;/span&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sort: &lt;span style="color: #a31515"&gt;&amp;quot;release_date&amp;quot;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Metaweb.read(query, displayAlbums);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;function&lt;/span&gt; displayAlbums(result) &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;if&lt;/span&gt; (!result || !result.album)&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; albumlist.innerHTML = &lt;span style="color: #a31515"&gt;&amp;quot;Unknown band: &amp;quot;&lt;/span&gt; + band + &lt;span style="color: #a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;return&lt;/span&gt;;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; albums = result.album; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; albumlist.innerHTML = &lt;span style="color: #a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;for&lt;/span&gt;(&lt;span style="color: blue"&gt;var&lt;/span&gt; i = 0; i &amp;lt; albums.length; i++)&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addOption(document.getElementById(&lt;span style="color: #a31515"&gt;'drpSuggestedValues'&lt;/span&gt;),albums[i].name, albums[i].name);&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;function&lt;/span&gt; addOption(selectbox,text,value )&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; optn = document.createElement(&lt;span style="color: #a31515"&gt;&amp;quot;OPTION&amp;quot;&lt;/span&gt;);&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optn.text = text;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optn.value = value;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectbox.options.add(optn);&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;}&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;script&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;html&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;head&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;title&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;title&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;title&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;head&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;body&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;input&lt;/span&gt; &lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;text&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;TypeText&amp;quot;&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;/span&gt; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;div&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;albumlist&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;div&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;input&lt;/span&gt; &lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;button&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;value&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;God save me&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;btn&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;onclick&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;listalbums()&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;select&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;drpSuggestedValues&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;size&lt;/span&gt;&lt;span style="color: blue"&gt;=5&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;select&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;body&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: #a31515; font-family: 'Courier New'"&gt;html&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; color: blue; font-family: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;font face="Calibri" size="3"&gt;Now I want to list down all the categories in the same way by changing the query to:&lt;/font&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; queryItem = &lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query:[{&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name:&lt;span style="color: blue"&gt;null&lt;/span&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type:&lt;span style="color: #a31515"&gt;&amp;quot;/freebase/domain_category&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;It is showing error : &amp;ldquo;No such property by name query&amp;rdquo;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;Can you help me in solving my problem of displaying all the categories(&lt;span style="color: blue"&gt;&amp;ldquo;Arts&amp;nbsp; &amp;amp; entertainment,society,sports,Porducts &amp;amp; services,Money etc.. )in a&lt;/span&gt; in a dropdown&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New'"&gt;Sreedhar Ambati&lt;/span&gt;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008018573</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008018573" title="Advanced search functions: Metaweb Queries with JavaScript "/>
    <summary type="html">I am Sreedhar Ambati. Recently started working on Freebase API. &amp;nbsp; I want to list down all the...</summary>
    <title>Advanced search functions: Metaweb Queries with JavaScript </title>
    <updated>2008-04-21T05:38:45.0000Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;Sreedhar, I posted a reply to your 3 questions &lt;a href="/view/discuss/user/ambatisreedhar#/guid/9202a8c04000641f8000000007e491d8"&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007e49205</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007e49205" title="Advanced search functions: Treeview Structure of all categories"/>
    <summary type="html">Sreedhar, I posted a reply to your 3 questions here. </summary>
    <title>Advanced search functions: Treeview Structure of all categories</title>
    <updated>2008-04-14T17:30:16.0000Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I&amp;nbsp;am &amp;nbsp;Sreedhar Ambati.&lt;/p&gt;&lt;p&gt;I want to display all the categories in a tree view structure. Like main category in root node and its subcategories in leaf nodes. etc.&lt;/p&gt;&lt;p&gt;How can I do that?&lt;/p&gt;&lt;p&gt;Please provide me some code or sample so that&amp;nbsp;I can start my Search application.&lt;/p&gt;&lt;p&gt;This is my id: &lt;a href="mailto:ambatisreedhar@gmail.com"&gt;ambatisreedhar@gmail.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Sreedhar A&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007e48713</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007e48713" title="Advanced search functions: Treeview Structure of all categories"/>
    <summary type="html"/>
    <title>Advanced search functions: Treeview Structure of all categories</title>
    <updated>2008-04-14T10:46:32.0005Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Sreedhar,&lt;/p&gt;&lt;p&gt;&amp;nbsp;See the response to your other post &lt;a href="/view/discuss/guid/9202a8c04000641f8000000003c1b0e3#/guid/9202a8c04000641f800000000796bc11"&gt;here&lt;/a&gt;.&amp;nbsp; For the most part, you only need to post once in one location to receive an answer. &lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007a07a99</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007a07a99" title="Advanced search functions: API please"/>
    <summary type="html">Sreedhar, &amp;nbsp;See the response to your other post here.&amp;nbsp; For the most part, you only need to...</summary>
    <title>Advanced search functions: API please</title>
    <updated>2008-03-13T16:48:20.0007Z</updated>
  </entry><entry>
    <author>
    <name>ambatisreedhar</name>
    <uri>http://www.freebase.com:80/view/user/ambatisreedhar</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Can anyone let me know what is the API I have to use for getting Advanced Search functionality in my .net application?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Sreedhar&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000796b122</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000796b122" title="Advanced search functions: API please"/>
    <summary type="html">Hi Can anyone let me know what is the API I have to use for getting Advanced Search functionality in...</summary>
    <title>Advanced search functions: API please</title>
    <updated>2008-03-13T07:32:42.0005Z</updated>
  </entry>
</feed>