Through the $ _GET method, I get two hashtag variables (football team) from a drop down list on the previous page After that, they are stored in javascript variables, which I am trying to manipulate to display the latest tweets about the team.
I think that (or if nothing is being displayed) is the twitter search URL or function that retrieves the tweet ($ .getJSON (url, function). The code is also below.
script type = "text / javascript"> side team 1, team 2; team1 = ' & Lt ;? Php echo $ _GET ["team1"];? & Gt; 'team2 =' & gt; php echo $ _GET ["team2"];? & Gt; '; & lt; / script & Gt; & lt; div id = "last-tweet" & gt; & lt; / div & gt; & lt; script type = "text / javascript" & gt; $ (document) .ready (function Shan () {var format = 'json'; // set format var url = 'http: //search.twitter.com/search.json? Q =% 23' + Team 1 + '& amp; Callback =?' ; $ .getJSON (URL, Function (results) {// TivetS $ ("#Time Tweet") HTML (Results [0] .text); // first in response and keep it inside div;} ;}};
Instead of 'tweet' (eg, the result [0]) although I made adjustments for it and there is still no luck. The results of the firebug report are undefined.
A snippet below json file:
{ "result": [{ "Se_usr_aidi_str": "118766757", "Profile_image_url": "http: // a0 "S_dv", "id_st": "48338376365056000", " metadata ":" "," recent "}," Tu_yusr_aidi ": null," text ":" # Ifisldveldblingbakbakbakbakbakbak Tex # Amayuefsi. "go to the URL below in the browser save only output Jesan",
Your 'tweet [0] .text' should be converted to
binding [0]. Method // Output "NewURI"
Comments
Post a Comment