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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -