This seems to be a bug on the Twitter API when used from a browser (or
at least from Firefox).
When issuing a call with "&callback=xxx", the callback code is
returned properly. When requesting again with "&callback=yyy", the
response is
yyy(xxx([actual json data]);)
This doesn't happend if requests are done through curl.
So... :?
On Nov 19, 2008, at 11:25 PM, Ralph Whitbeck wrote:
>
> Just realized the first link didn't work...not sure if this helps at
> all.
>
> http://damnralph.com/2007/11/20/PullingTwitterUpdatesWithJSONAndJQuery.aspx
>
> On Nov 19, 5:18 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
>> This is a weird issue - I can't pinpoint it. It's more than a reload
>> problem, as well, since I can copy the URL, open it in another tab,
>> and it'll still fail.
>>
>> I'm not sure!
>>
>> --John
>>
>> On Wed, Nov 19, 2008 at 3:49 PM, Ralph Whitbeck
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>>> I wrote a blog post awhile ago on how to pull in Twitters API via
>>> JSON
>>> and consume it with jQuery.
>>
>>> http://damnralph.com/2007/11/20/PullingTwitterUpdatesWithJSONAndJQuer
>>> ...
>>
>>> As you can see in the comments some people are having problems with
>>> the code I posted. The problem seems to be when you reload the
>>> page.
>>> jQuery seems to add a second callback method thus making the JSON
>>> data
>>> from twitter invalid and breaking the javascript on the page.
>>
>>> Here is a page that only has the example code:
>>> http://www.damnralph.com/content/binary/twitter-json-jquery.html
>>
>>> Can someone look at this and tell me 1. am I doing something
>>> wrong? 2.
>>> Is this a bug with getJSON and should I post a bug report? 3. Is
>>> this
>>> just a bug with the Twitter API and should I post a bug report?
>>
>>> Thanks
>>
>>> Ralph Whitbeck
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---