Category Archives: JavaScript

Dates, Milliseconds, Java and Firebug

In Clearspace we store dates using their millisecond representation rather than as a full fledged date in database tables because we don’t want to have to worry about how each database represents dates, but that means that whenever you’re looking … Continue reading

Posted in JavaScript, work | 1 Comment

Creating a Firefox Sidebar for Clearspace: Part II

It looks like it was almost 2 months ago that I wrote a blog post about the Clearspace plugin for Firefox (called Clearfox), promising that I would follow up with the details on the JavaScript side of the project. I … Continue reading

Posted in Clearspace, J2EE, JavaScript, Rich Internet Applications, Software Development, work | 1 Comment

Script.aculous, Autocompleter, Element.collectTextNodes and Element.cleanWhitespace

A couple days ago I was fighting with the Script.aculous autocompleter. I was using code that was almost exactly like the customized autocompletion demo, where the content returned from the AJAX call was a bulleted list of items with each … Continue reading

Posted in JavaScript | 2 Comments

Ajax.Autocompleter is not a constructor

Using script.aculous to create some cool effects on your website? Ever get this error message? Ajax.Autocompleter is not a constructor All of the results I found on Google suggested that the solution to the problem was to make sure that … Continue reading

Posted in JavaScript, Rich Internet Applications | 18 Comments

DWR Callback rules

If you’ve spent time with DWR, you’ve probably seen both the callback function as last parameter idiom and callback function as first parameter idiom and wondered, wtf? The rules for when each one is applicable are below: If there is … Continue reading

Posted in JavaScript | 4 Comments

Hacking WebWork Result Types: Freemarker to HTML to JavaScript

I threw all of my past experience with Struts out the window when I started my new job because we use WebWork. WebWork is approximately one thousand times better though so I’m not complaining. One of the unique to WebWork … Continue reading

Posted in J2EE, JavaScript, Struts, WebWork | 1 Comment

JSON: Making Content Syndication easier

At work we’ve been having some discussions about sharing content between two websites: the natural first option was an XML solution, in this case RSS. Site A would subscribe to the RSS feeds of the site B, periodically retrieving the … Continue reading

Posted in Content Management, J2EE, JavaScript, Open Source, Software Development, XML | 2 Comments

FluentInterface

A couple of weeks ago on the DWR users list, in the context of needing to wire up DWR without using an XML file, Joe Walker pointed to a blog posting by Martin Fowler. In it, Martin discusses an interface … Continue reading

Posted in J2EE, JavaScript, Software Development, XML | 1 Comment

Transparent PNG plus pngfix.js

A couple weeks back I mentioned that I used this JavaScript hack to enable IE to see transparent PNG’s in the way I wanted them to be seen (you know, with transparency). I should mention that I had to back … Continue reading

Posted in JavaScript | Leave a comment

Setting up multiple versions of IE plus cookies

The web has got the whole ‘multiple versions of IE’ fairly well documented already, but you have to scroll way down to the bottom of the second article to see that if you want cookies to work, you’ll have to … Continue reading

Posted in JavaScript, Systems Administration | Leave a comment