Posts Tagged ‘JavaScript’

August 23, 2009 0

gBeard Forces the Pirate Google to Walk the Plank

By Levi Senft in Web

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 [...]

Tags: , , , , ,

September 30, 2008 0

JavaScript For Testing Layouts

By Levi Senft in Web

Here 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: ,

November 14, 2007 1

JSON Pretty Printer

By Levi Senft in Web

Yesterday 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: , ,

November 5, 2007 2

Adding a Persistent Flash Element to an Ajax Application

By Levi Senft in Web

To 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 [...]

Tags: , , , , ,

November 5, 2007 1

Ajax Anchor Component for Prototype

By Levi Senft in Web

The 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: , , ,

October 31, 2007 0

Playing a Wav File with a IE CSS Expression

By Levi Senft in Web

Earlier 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: , ,

April 23, 2007 0

Syntax Highlighting for Online Code Snippets

By Levi Senft in Web

Dream Projection’s syntax highlighter script transforms source code in a <textarea> tag to colored code with line numbers.
http://www.dreamprojections.com/syntaxhighlighter/

Tags: ,