Archives for the 'HTML' Category

Cross Browser Compatibility

About 2 years ago I started experimenting with using divs instead of tables. The layout would look good in FF, but not in IE; and when I fix it for IE, it would break in FF. It drove me nuts.
Since then I’ve picked up a few CSS hacks, but I still don’t feel completely equipped […]

19 June 2008 | CSS, HTML | No Comments

ActiveWidgets Grid 1.0.2

My client, who is, amongst other things, a freelance civil engineer and a VB6 programmer, asked me to create a web-based version of his standalone Windows application. He wanted nothing less than an exact replica.
How to do a VB6-style ListView in HTML? I searched Google and found ActiveWidgets. Beautiful, they have a Javascript ListView (they […]

14 August 2007 | Software engineering, HTML, Javascript | 1 Comment

IE Progress Bar Loading Forever for Iframe

IE’s progress bar sometimes makes it seem that the page is loading forever when you load a page in an iframe. The following is a workaround for it:

Create a blank.html file in the root web directory. This file need not contain anything.
Create an invisible iframe in your page by setting frameborder=”0″ and style=”height: 0; width: […]

6 August 2007 | Software engineering, HTML, Javascript | 3 Comments

Dynamically Populating a Select Box Using AJAX

Update 6 June 2012
I wrote this way before jQuery had become mainstream. So if you came here via Google search, please don’t follow my example below. With jQuery, these type of things are pretty much one-liners. For sample jQuery code, see jQuery: Best practice to populate drop down?
And forget about XML—use JSON instead.
Original post
[ Demo and […]

21 January 2007 | Software engineering, AJAX, HTML, Javascript | No Comments

Dynamically Populating a Select Box Using a Hidden Iframe

Let’s say you have two select boxes, Country and City. The contents of City should reflect that of the selected country. A hidden iframe may be used to do this without having to reload the page.
The concept is to use the onchange event of Country to specify the src of the hidden iframe. Server-side code […]

20 January 2007 | Software engineering, HTML, Javascript | No Comments