Site Archives JavaScript
Empty XHTML tags and Internet Explorer DOM traversal
Internet Explorer behaviour with HTML and XHTML pages containing empty elements with no end tag such as <span />.
Range.intersectsNode, Mozilla and WebKit
Today I needed to know whether a Range object (obtained from a selection) intersected with a particular node within an HTML document, which is a relatively common scenario when developing WYSWIYG editors. Mozilla’s implementation of Range used to have a proprietary intersectsNode method, which was ideal. However, they’ve removed this in Gecko 1.9 (and therefore [...]
Converting a JavaScript date object to an Excel date / time serial value
I recently needed to post some data from a web page into a database table. This database table happens to be viewable as a simple html table on a web page. As part of the analysis of the data, the html table of data is inserted into an Excel worksheet as a Web [...]
JavaScript eval in iframes
In the course of developing a new version of log4javascript, I was adding a command line feature that required the ability to evaluate and execute code in an iframe from within the main window. Fine, I thought, I’ll just call eval on the iframe window object. Which predictably worked fine in Firefox and Opera 8+, [...]
Number and size of cookies in Internet Explorer
I’ve been working on an Intranet project which has been attempting some hefty (and perhaps inadvisable) setting and retrieval of cookies via JavaScript. It’s led to some interesting discoveries, and more importantly the discovery of what seems like a bug in IE6. The project is for users with IE6 only.
Carriage Returns, Line Feeds and Ampersands in IE / Outlook mailto: links
I do quite a lot of work on Intranets, on which the only browser in use is Microsoft Internet Explorer. This often means that IE-specific tricks can be used safely on the Intranet. This specific trick is for using IE with Outlook.
I read on MSDN about how to include line breaks in the [...]
Categories
Find posts using the "tags" provided below.
Monthly Archives
Find posts by the month they were written.
- June 2010
- April 2010
- February 2010
- January 2010
- October 2009
- September 2009
- June 2009
- February 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- February 2008
- October 2007
- March 2007
- February 2007
- January 2007
- December 2006
- September 2006
- August 2006
- July 2006
- May 2006
- April 2006
- March 2006
- October 2005
- September 2005
- August 2005
- July 2005


