Archives for the 'HTML' Category
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 […]
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.
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: […]
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.
[ Demo and […]
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 […]