Note that there are some explanatory texts on larger screens.

plurals
  1. POUndefined Value on Itunes search Api
    text
    copied!<p>I have this HTML and Js and the firtst result is an undefined value. I want to remove that undefined Value.</p> <p>I know its a simple solution but i cant fugure it out. I ask for help please.. Thank you.</p> <p><strong>Custom. js</strong></p> <pre><code>$(function(){ $.ajax({ url: "--URL--", dataType: 'jsonp', success: function(json_results){ console.log(json_results); $('#twitList').append('&lt;ul data-role="listview"&gt;&lt;/ul&gt;'); listItems = $('#twitList').find('ul'); $.each(json_results.results, function(key) { html = '&lt;img src="'+json_results.results[key].artworkUrl60+'"/&gt;'; html += '&lt;h3&gt;&lt;a href="#"&gt;'+json_results.results[key].collectionName+'&lt;/a&gt;&lt;/h3&gt;'; html += '&lt;p&gt;From: '+json_results.results[key].artistName+'&lt;/p&gt;'; html += '&lt;p&gt;Created: '+json_results.results[key].releaseDate+'&lt;/p&gt;'; listItems.append('&lt;li&gt;'+html+'&lt;/li&gt;'); }); // Need to refresh list after AJAX call $('#twitList ul').listview(); } }); }) </code></pre> <p><strong>HTML</strong></p> <pre><code> &lt;title&gt;Itunes&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" /&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"&gt;&lt;/script&gt; &lt;script src="custom.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page"&gt; &lt;div data-role="header"&gt; &lt;h1&gt;Itunes&lt;/h1&gt; &lt;/div&gt;&lt;!-- /header --&gt; &lt;div data-role="content"&gt; &lt;div id="twitList"&gt;&lt;/div&gt; &lt;/div&gt;&lt;!-- /content --&gt; &lt;/div&gt;&lt;!-- /page --&gt; &lt;/body&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload