Papanik / twitterjs

Automatically exported from code.google.com/p/twitterjs
MIT License
0 stars 0 forks source link

Not working in Safari 4 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Seems to insert an empty <ul> instead of one populated with tweets. Could be a 
browser bug, of 
course, since Safari 4 is still beta.

Original issue reported on code.google.com by lev...@gmail.com on 3 Mar 2009 at 5:23

GoogleCodeExporter commented 8 years ago
Version 1.11.2 seems to work in Safari 4, but it doesn't remove the "Loading 
twitters" text and graphic.

Original comment by ryrom...@gmail.com on 4 Mar 2009 at 6:53

GoogleCodeExporter commented 8 years ago
It would be very nice when this issue would be fixed :)

Original comment by fay.p...@googlemail.com on 10 Mar 2009 at 5:20

GoogleCodeExporter commented 8 years ago
This has got to be a bug in Safari 4. I'm getting really strange behavior when 
testing. For example, I changed the 
"count" parameter in the URL for the twitter JSON API from 20 to other values 
(4, 19, 21), and it started working 
on my local copy, and then i uploaded the changes to my public instance and now 
it's broken again. Maybe it's 
something having to do with timeouts.

Original comment by lev...@gmail.com on 10 Mar 2009 at 5:26

GoogleCodeExporter commented 8 years ago
aha! it's some kind of JS caching bug in Safari 4. I added...

'&foo=' + new Date.getTime()

...to the URL for the JSON API, so that each call is unique, and now the script 
works reliably in Safari 4.

Original comment by lev...@gmail.com on 10 Mar 2009 at 5:33

GoogleCodeExporter commented 8 years ago
okay, it´s an cache problem but what is wrong in my line (178)?

var url = 'http://www.twitter.com/statuses/' + (options.withFriends ? 
'friends_timeline' : 'user_timeline') + '/' + id 
+ '.json?callback=twitterCallback' + guid + '&count=20&foo=' + new 
Date.getTime();

thanks for help :)

Original comment by fay.p...@googlemail.com on 11 Mar 2009 at 11:13

GoogleCodeExporter commented 8 years ago
I don't know, that looks just like what I have. Maybe you modified the script 
elsewhere.

Original comment by lev...@gmail.com on 11 Mar 2009 at 10:37

GoogleCodeExporter commented 8 years ago
If you're running off the latest 1.12.2 version then it should fix the Safari 4 
issues.

Original comment by remysh...@gmail.com on 13 Mar 2009 at 2:20

GoogleCodeExporter commented 8 years ago
For the record, I'm seeing this get logged by Safari when the twitter url is 
called:
"Resource interpreted as script but transferred with MIME type text/html"

So it's likely a caching issue...

Original comment by Kab...@gmail.com on 20 Mar 2009 at 6:55

GoogleCodeExporter commented 8 years ago
I'm not seeing this issue at all in Safari tests.  Although I suspect you're 
hotlinking off the google code repo or 
you're serving the file up as plain text - it should be javascript/text.  I'm 
releasing 1.13.1 as javascript/text so 
you *can* hotlink from Google code.

Original comment by remysh...@gmail.com on 25 Aug 2009 at 8:25