Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you are getting an issue because you are trying to concatenate an array with a string, what you may need to do is this:</p> <pre><code>...+"["+json.results[i].geo.coordinates[0]+","+json.results[i].geo.coordinates[1]+"]"+... </code></pre> <p>rather than just</p> <pre><code>...+json.results[i].geo.coordinates+... </code></pre> <hr> <p>or try this:</p> <pre><code>if (json.results[i].geo) console.log('&lt;p id="tweet"&gt;&lt;img id="tweetImage" src="' + json.results[i].profile_image_url + '" width="48" height="48" /&gt;&lt;span id="tweetText"&gt;' + '&lt;a href="http://twitter.com/' + json.results[i].from_user + '"&gt;' + json.results[i].from_user + "&lt;/a&gt; " + json.results[i].text + "&lt;br /&gt;" + json.results[i].created_at + '&lt;/p&gt;' + "["+json.results[i].geo.coordinates[0]+","+json.results[i].geo.coordinates[1]+"]" + '&lt;/span&gt;'); </code></pre> <p>or even:</p> <pre><code>if (json.results[i].geo) console.log($('&lt;p id="tweet"&gt;&lt;img id="tweetImage" src="' + json.results[i].profile_image_url + '" width="48" height="48" /&gt;&lt;span id="tweetText"&gt;' + '&lt;a href="http://twitter.com/' + json.results[i].from_user + '"&gt;' + json.results[i].from_user + "&lt;/a&gt; " + json.results[i].text + "&lt;br /&gt;" + json.results[i].created_at + '&lt;/p&gt;' + "["+json.results[i].geo.coordinates[0]+","+json.results[i].geo.coordinates[1]+"]" + '&lt;/span&gt;')); </code></pre> <p>and make sure the html looks correct.</p> <p>The other problem that i noticed is that you are closing your <code>&lt;/span&gt;</code> tag before your <code>&lt;/p&gt;</code> tag, which is not valid html. I dont think that is your problem (it might be?), but you should probably fix it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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