Recent Notes

Displaying keyword search results 1 - 2
Created by James on July 04, 2009 16:30:40    Last update: January 11, 2011 21:21:59
If you are looking for a solution for a progress bar, I direct you to the following resources: Bare Naked App provides a simple and elegant solution based on pure CSS with two images. You control the percentage of completion through the background-position attribute of the CSS. HTML: <img src="/images/percentImage.png" alt="... CSS: img.percentImage { background: white url(/imag... Images: (percentImage.png) (percentImage_back.png) WebAppers extended the above solution with JavaScript. They also added several colored images: JQuery UI has a built-in progress bar widget. However, if you want to get to understand some of the foobar needed to get CSS to work (in general) through this example, stay with me for the rest of this note. Initially I was thinking, a progress bar should be easy: just make...
Created by Dr. Xi on October 17, 2007 21:12:08    Last update: October 17, 2007 21:12:08
When setting an input field to "readonly", you have to set the attribute "readOnly" (with a capital O) to true . Setting the "readonly" attribute has no effect. var field = document.getElementById("theFieldN...