[twitter-dev] Re: Problem with search/profile/faves/list widget

2011-03-28 Thread BuffLaser2000
This problem has fixed itself! Checked again today and the full
documented source file is working again. Thanks to whoever...?

On Mar 26, 1:27 pm, BuffLaser2000  wrote:
> I have been using a copy this JS file for my twitter list 
> widget:http://twitter.com/javascripts/widgets/widget.js    <-- this is
> (supposed to be) the full documented source file
>
> It stopped working recently (a couple days ago I think?). It's giving
> me a 400 (bad request) trying to get the status from statuses.json.
>
> If I switch to the online minimized version it works 
> again:http://widgets.twimg.com/j/2/widget.js
> But the online full documented version 
> athttp://twitter.com/javascripts/widgets/widget.js
> still does not work.
>
> I have to used a modified copy of the full source to avoid
> document.write killing my AJAX page. (See 
> threadhttp://groups.google.com/group/twitter-development-talk/browse_thread...)
>
> Please help.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: List widget off since today

2011-03-26 Thread BuffLaser2000
Same problem. See thread here:
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/57de252859dc2b64#

On Mar 25, 9:09 am, oliv  wrote:
> Hello,
>
> My widget list is not working anymore, I get the message : You must
> specify either a list ID or a slug and owner.
>
> Could you please help, I think it's a general problem.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Problem with search/profile/faves/list widget

2011-03-26 Thread BuffLaser2000
I have been using a copy this JS file for my twitter list widget:
http://twitter.com/javascripts/widgets/widget.js <-- this is
(supposed to be) the full documented source file

It stopped working recently (a couple days ago I think?). It's giving
me a 400 (bad request) trying to get the status from statuses.json.

If I switch to the online minimized version it works again:
http://widgets.twimg.com/j/2/widget.js
But the online full documented version at 
http://twitter.com/javascripts/widgets/widget.js
still does not work.

I have to used a modified copy of the full source to avoid
document.write killing my AJAX page. (See thread
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/60ce8b939741162d)

Please help.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Flaw in Twitter Widget code - Note to Twitter Developers!

2011-03-19 Thread BuffLaser2000
In this code:
http://twitter.com/javascripts/widgets/widget.js

You are using document.write() to create the widget element. Bad bad
bad. Any AJAX site that tries to init the widget after the page loads
will have the entire page overwritten by the widget.

W3C even has this to say about document.write():
"Note: Try to avoid using document.write() in real life JavaScript
code. The entire HTML page will be overwritten if document.write() is
used inside a function, or after the page is loaded. However,
document.write() is an easy way to demonstrate JavaScript output in a
tutorial."

So, I downloaded the JS file and modified TWTR.Widget to take a
container element name as part of the options object. If
set, .innerHTML is used on the container element instead of
document.write.

This simple fix will make your widgets compatible with Web 2.0 sites.

Thanks for listening.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk