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 […]
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 […]
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: […]
Dynamically Populating a Select Box Using AJAX
[ Demo and Source Code (PHP) ]
AJAX is actually not that difficult. All you need to know is some basic XML, and how to iterate through the XML tree structure using Javascript.
As in my previous post, there are two select boxes, City and Country, and the contents of City should reflect that of the selected country. […]
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 […]