title: Example Bing API doesn't work
body: <p>I have copy/paste a script from a Bing basic tutorial over here: <a href="http://www.bing.com/developers/s/APIBasics.html" rel="nofollow">Bing basic API</a></p>
  
  <p>I have paste the example script in dreamweaver:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function search() {
  var search = "&amp;query=" + document.getElementById("searchText").value;
  var fullUri = serviceURI + AppId + search;
  var head = document.getElementsByTagName('head');
  var script = document.createElement('script');
  script.type = "text/javascript";
  script.src = fullUri;
  head[0].appendChild(script);
  }
  function searchDone(results) {
  var result = null;
  var parent = document.getElementById('resultList');
  parent.innerHTML = '';
  var child = null;
  for (var i = 0; i &lt; results.SearchResponse.Image.Results.length; i++) {
  result = results.SearchResponse.Image.Results[i];
  child = document.createElement('li');
  child.className = "resultlistitem";
  child.innerHTML = '&lt;a href="' + result.Url +'"&gt;&lt;img src="' +
  result.Thumbnail.Url +'" alt="' + result.Title +'" /&gt;&lt;/a&gt;';
  parent.appendChild(child);
  }
  }
  var AppId = "&amp;Appid=86F7F70727A6D88CCE422ED44905A378E9780D81";
  var serviceURI = "http://api.bing.net/json.aspx?JsonType=callback&amp;JsonCallback=searchDone&amp;sourc
  es=image";
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Dreamweaver is telling me something is wrong over here:  </p>
  
  <pre><code>var serviceURI = "http://api.bing.net/json.aspx?JsonType=callback&amp;JsonCallback=searchDone&amp;sourc
      es=image";
  </code></pre>
  
  <p>I also put the script on JsBin for debugging but Jsbin is telling me the script is fine..I have no idea what the problem could be becouse the script doesnt work in the browser</p>