Author: ellen

Including HTML data in an xml document

When developing an xml-based application, you may come across the need to include HTML data in xml nodes. The problem is that unless this data is escaped in some way, it is interpreted as xml and will cause a malformed structure. The easiest way I’ve found so far to use a CDATA attribute to escape the code automatically. Then, when you are creating an xsl fragment to edit or display the data, use

Continue reading

When colspan property doesn’t appear to work in Firefox or Safari

When building web applications I often use display styles to show or hide divs or table rows as needed. On one project, I found that the “colspan” property did not seem to work in Firefox or Safari. This was because I had incorrectly used display:block to style the TR element, instead of display:table-row. A demo is below, and the code follows.

Continue reading

Fixing “Too many redirects” error in MediaWiki

I run a wiki for my ParrotCichlid.com fish fancier’s site, based on “MediaWiki.” It had been running fine, except for an increasing problem with spam, but one day it simply stopped working. Browsing to the site would result in the following error message:

Too many redirects occurred trying to open “http://parrotcichlid.com/book/index.php/Main_Page”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.


(Click to enlarge image)

Continue reading