Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Parse Twitter jSON but not Parse my same PHP document
    primarykey
    data
    text
    <p>I've a function that parse Twitter search result and put into my HTML document. The code works!</p> <p>Here is the code.</p> <pre><code>&lt;script&gt; $(function update_twit(){ $("#notice_div").html('Updating..'); $.ajax({ url: "http://search.twitter.com/search.json?q=stackoverflow&amp;rpp=2", dataType: 'jsonp', success: function(json_results){ $("#notice_div").html(''); $("#twitList").html(''); console.log(json_results); $('#twitList').append('&lt;ul data-role="listview" data-inset="true" data-theme="c"&gt;&lt;/ul&gt;'); listItems = $('#twitList').find('ul'); $.each(json_results.results, function(key) { html = '&lt;p class="ui-li-bside"&gt;'+json_results.results[key].text+'&lt;/p&gt;'; html += '&lt;p class="ui-li-aside"&gt;Gönderen: &lt;strong&gt;'+json_results.results[key].from_user+'&lt;strong&gt;&lt;/p&gt;'; listItems.append('&lt;li&gt;&lt;a href="index.html"&gt;'+html+'&lt;/a&gt;&lt;/li&gt;'); }); // Need to refresh list after AJAX call $('#twitList ul').listview(); window.setTimeout(update_twit, 10000); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#notice_div").html(errorThrown+'Error..'+textStatus); window.setTimeout(update_twit, 60000); } }); }) &lt;/script&gt; </code></pre> <p>The problem is I copy the Twitter url and paste into my browser. After getting response. I make a PHP document (getmyjson.php) like that</p> <pre><code> &lt;? header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json'); $json='{"completed_in":0.021,"max_id":158455057786998785,"max_id_str":"158455057786998785","next_page":"?page=2&amp;max_id=158455057786998785&amp;q=erhan&amp;rpp=2","page":1,"query":"erhan","refresh_url":"?since_id=158455057786998785&amp;q=erhan","results":[{"created_at":"Sun, 15 Jan 2012 07:46:44 +0000","from_user":"_VCG_","from_user_id":169112180,"from_user_id_str":"169112180","from_user_name":"vedat can g\u00FCm\u00FC\u015F","geo":null,"id":158455057786998785,"id_str":"158455057786998785","iso_language_code":"tr","metadata":{"result_type":"recent"},"profile_image_url":"http://a3.twimg.com/profile_images/1710193374/bb_normal.png","profile_image_url_https":"https://si0.twimg.com/profile_images/1710193374/bb_normal.png","source":"&amp;lt;a href=&amp;quot;http://twitter.com/&amp;quot;&amp;gt;web&amp;lt;/a&amp;gt;","text":"@erhan_ordu ben gidemiyom ya ama ke\u015Fke bi ihtimal olsa da gitsem :D bi de VGC DE\u011E\u0130L VCG VCG :d","to_user":"erhan_ordu","to_user_id":458677081,"to_user_id_str":"458677081","to_user_name":"ERHAN ORDU"},{"created_at":"Sun, 15 Jan 2012 07:39:34 +0000","from_user":"hannyfaarah","from_user_id":199700684,"from_user_id_str":"199700684","from_user_name":"H\u2639","geo":null,"id":158453256241168384,"id_str":"158453256241168384","iso_language_code":"in","metadata":{"result_type":"recent"},"profile_image_url":"http://a2.twimg.com/profile_images/1736543252/cats_normal.jpg","profile_image_url_https":"https://si0.twimg.com/profile_images/1736543252/cats_normal.jpg","source":"&amp;lt;a href=&amp;quot;http://twitter.com/&amp;quot;&amp;gt;web&amp;lt;/a&amp;gt;","text":"\"mantan bebep erhan tersayang selalu dihati\" HAHAHAHA emir emir ngakak weeey","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null}],"results_per_page":2,"since_id":0,"since_id_str":"0"}'; echo $json; ?&gt; </code></pre> <p>Now i am trying to change Twitter URL in the first code to www.mywebiste.com/getmyjson.php</p> <p>But it does not work!</p> <p>Error message is : jQuery164018531796569004655_1326623562322 was not calledError.parsererror</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.
 

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