how i can set this src value using jQuery or javascript -


var fileref = document.createelement('script'); fileref.setattribute("type","text/javascript"); fileref.setattribute("src", "http://search.twitter.com/search.json?                             q="+buildstring+"&callback=tweettick&rpp=50"); document.getelementsbytagname("head")[0].appendchild(fileref); 

here buildstring value is

from:@one+or+from:null+or+from:@two+or+from:null+or+from:@three+or+ from:null+or+from:null+or+from:@four+or+from:null+or+from:@five+or+ from:null+or+from:@six+or+from:null+or+from:@seven+or+from:null+or+ from:@eight 

here when used buildstring value( i.e specified ) set value src working me.

but if set buildstring directly giving exception me.

  syntaxerror: illegal character  tweettick(� 

if question not clear explain more detail.

please me.thanks in advance..

seems api v1 search has stopped working, should upgrade api v1.1 require authentificated user. direct link api search seems still work, can no more access using ajax json request.

see (not clear) annoucement here: https://dev.twitter.com/blog/planning-for-api-v1-retirement


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -