cemaivaz / otterapi

Automatically exported from code.google.com/p/otterapi
0 stars 0 forks source link

Uncaught SyntaxError: Unexpected token : #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use the following code

$.getJSON("http://otter.topsy.com/searchcount.json?q=from:"+username+"&callback=
?", 
    function(data){ }
);

but, the error comes: 
Uncaught SyntaxError: Unexpected token : in line 1...

I believe that the final numbers here:
"response":{"w":38,"h":0,"a":1049,"d":2,"m":126}}

must be
"response":{"w":"38","h":"0","a":"1049","d":"2","m":"126"}}

or not?

Original issue reported on code.google.com by mateusda...@gmail.com on 4 Feb 2011 at 9:53

GoogleCodeExporter commented 9 years ago
Change searchcount.json to searchcount.js and I believe this will work.

Original comment by larry%to...@gtempaccount.com on 4 Feb 2011 at 9:56

GoogleCodeExporter commented 9 years ago
works great..... thanks

Original comment by mateusda...@gmail.com on 4 Feb 2011 at 10:51

GoogleCodeExporter commented 9 years ago

Original comment by larry%to...@gtempaccount.com on 4 Feb 2011 at 11:10