Martin Ström

  • Home
  • Blog
  • Projects
  • Information
  • Tags
  • Copy Paste Character

    Two weeks ago we (me and Konst & Teknik) launched copypastecharacter.com—a site to make it dead easy to copy those special characters which otherwise can be hard to find. We just pushed an update and I realized I hadn’t mentioned it here. The character you click will automatically get copied into your clipboard, thanks to the [...]

    Posted

    September 19, 2008

    Tags

    blog, javascript, konst-teknik, project, prototype

    15 comments

  • Multi-dimensional array sorter

    The other day when working on some small updates on konst-teknik.se I wanted to sort the projects in a multi dimensional way, and take the other factors than the first into account. JavaScript’s Array#sort only supports one dimensional sorting so I wrapped my own sorter. The results turned up pretty good (at least compared to the [...]

    Posted

    November 24, 2007

    Tags

    blog, javascript, konst-teknik, prototype, sorting

  • Ajax.CachedRequest

    Recently I wanted to cache the results (responseText) from a lot of Ajax.Requests since the returning data would not change and made the roundtrip to the server unnecessary. Maybe there are others out there interested so here’s the code. It’s not very well tested except the project where it is in use so there might [...]

    Posted

    November 11, 2007

    Tags

    blog, javascript, prototype

    4 comments

  • Prototype & Script.aculo.us SVN checkins RSS feed

    Thanks to Yahoo Pipes I created two RSS feeds for the Ruby on Rails checkins (changesets). One containing only the Rails-spinoffs checkins (that is Prototype and Script.aculo.us right now) and another without the spinoffs. This way I can follow the JavaScript-related changes as they happen but watch the Ruby-stuff every now and then. Only Spinoffs checkins Without [...]

    Posted

    July 25, 2007

    Tags

    general, javascript, prototype, script.aculo.us

  • What’s new in Prototype svn?

    Just after posting this I saw that sam tagged the 1.5.1 release in svn so I guess this means that 1.5.1 is final. Great work! There has been a lot of action the past days in the Prototype SVN; the release of 1.5.1 RC4, the new DOM and Position branches and a lot of other work. [...]

    Posted

    May 1, 2007

    Tags

    blog, javascript, prototype

    2 comments

  • One animated background image for multiple elements in Safari

    I’ve found out that Safari can’t handle the same animated gif as background for multiple elements, it will just animate one of them at the same time. On a project I’m currently working on my I use the following trick to make all requests to the background image (in this case indicator_black.gif) unique. [...] var text = [...]

    Posted

    February 27, 2007

    Tags

    blog, javascript, prototype, safari

  • Rails’ time extensions ported to JavaScript

    I’ve ported Rails’ Numeric Time extensions to JavaScript since I needed to do some date calculations for a project I’m working on. Now one should be able to calculate dates in JS like this: (5).seconds() // => 5000 (2).weeks() + (2).hours() + (15).seconds() // => 1216815000 (1).week().fromNow().toDate() // => Fri Sep 22 2006 19:16:32 GMT+0200 (CEST) var date = [...]

    Posted

    September 15, 2006

    Tags

    blog, javascript, prototype, script.aculo.us

    14 comments

  • TextMate Prototype & Scriptaculous Bundle

    This the first version of a TextMate bundle for Prototype and script.aculo.us JavaScript libraries. The language grammar is based on from Justin Palmers Prototype Bundle but the other commands/snippets are all new. Please let me know if you have any comments and/or improvements. Download here Update 2006-07-16 The bundle is [...]

    Posted

    July 14, 2006

    Tags

    blog, javascript, osx, prototype, script.aculo.us, textmate

    9 comments

Top