A while back I was reading an article on Arstechnica about The Pirate Google. The Pirate Google was created as a response to the verdict in the Pirate Bay Trial. The argument was that Google indexes torrents as does the pirate bay – why isn’t anyone prosecuting Google? The Pirate Google works by appending filetype:torrent to the end [...]
Posts Tagged ‘JavaScript’
JavaScript For Testing Layouts
By Levi Senft in WebHere is a little script I wrote for testing layouts. It injects random lorem ipsum texts, lists and headings into a documents content area. To start using it include the script at the bottom of your HTML page and give your content container an the id stretchme. An absolutely positioned div with [...]
Tags: HTML, JavaScript
JSON Pretty Printer
By Levi Senft in WebYesterday I was trying to deserialize a JSON object in flash. The object was delivered from a JSP app that I didn’t have access to. The object was written out on a single line with no spaces. Which is as it should be for optimization reasons, but it was very hard to [...]
Tags: AJAX, JavaScript, JSON
Adding a Persistent Flash Element to an Ajax Application
By Levi Senft in WebTo illustrate adding statefulness to our application I’m going to add a flash music player to our application. Using web 1.0 techniques getting our player to remain static would require either a pop-up or some sort of frames setup. We’re going to add the player to the masthead of our page and let [...]
Ajax Anchor Component for Prototype
By Levi Senft in WebThe Ajax Anchor Component allows you to quickly create ajax applications with a minimal amount of code. When the component is initialized it looks for anchor elements with rel attributes starting with a hash. Like this:
Tags: AJAX, HTML, JavaScript, Prototype
Playing a Wav File with a IE CSS Expression
By Levi Senft in WebEarlier today at Humaniz we were making fun of evil web practices like background sounds and I got the idea of playing a sound in IE using CSS expressions, which are in general another evil practice, although sometimes necessary.
After I got this bad boy working in IE I thought I would make it cross browser. [...]
Tags: Cow Bell, CSS, JavaScript
Syntax Highlighting for Online Code Snippets
By Levi Senft in WebDream Projection’s syntax highlighter script transforms source code in a <textarea> tag to colored code with line numbers.
http://www.dreamprojections.com/syntaxhighlighter/
Tags: JavaScript, Syntax Highlighting