thom blake computer ethics

Twitter Script

congypsy.com until recently had a single validation error (XHTML 1.0 strict), and I can’t stand for that sort of thing on a site I work on. The source was the “Latest updates on Twitter” section; I was using Twitter’s pregenerated code bits with just a little modification, and their script expects the <ul> it uses to have a particular ID. The problem came in when I had two of them on a page; obviously, you can’t have two objects with the same ID on one page! But to my surprise, everything worked as expected in Firefox, so I left it alone for a while. (Fail)

So then I realized I could just download the script from the Twitter site, modify it slightly, and free myself from the horror of invalid XHTML. UnFail.

1 Comment so far
Leave a comment

You can also write your own Javascript function to handle the results, and use their data fetching api.

Check the source on http://isaacschlueter.com

<rant>
Also, XHTML is for hippies. One of these days, I’m gonna convert my sites over to HTML4, but Wordpress is so XHTML it’s almost not worth it. The browser is actually using HTML, even if you have an XHTML doctype, so it’s ridiculous.
</rant>



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)