Archive | Javascript RSS feed for this section

Forcing Firefox to obey autocomplete="off" for password fields

Autocomplete is a nice feature which fills in common form fields automatically for the user. However, in some cases you don’t want this to happen.  Some examples could be an account management page where you don’t want the admin password to be auto-filled in when you are creating and managing accounts.  Another example is any [...]

25 Comments Continue Reading →

Dynamically Adding Links (a href) using javascript and DOM

I’m adding this post strictly for the reason that every time I need to do this I spend about 20 minutes searching for an example, only to find various broken posts and incorrect answers. This way works for me every time. If you have an alternate way that works better or is less code, please [...]

1 Comment Continue Reading →

Dynamically updating CSS based on browser width

I was working on an interface with a liquid layout recently that looked pretty good when the browser was at a relatively average width (600 to 1000 pixels). However, when I checked it on a really wide screen, the layout started to get a little wierd. Everything stretched as it should, but with a large [...]

6 Comments Continue Reading →

AJAX DataGrid Comparison

UPDATE 04-2010: This post was originally written in 2006.  There are a lot more options for ajax datagrids now and most of them are constantly evolving.  Even if I were to review them all, it would be difficult to keep this page updated.  So, instead the original article is below and I’ll focus on my [...]

12 Comments Continue Reading →

mm_menu.js and the FireFox Mouse Cursor

UPDATE: I get occasional requests and questions from people who are using mm_menu.js about how to use it or about some compatibility issue.  Let me be clear that I don’t use or recommend mm_menu.js.  It is old, outdated code and does not follow current best-practices.  If you use mm_menu.js, I would fully expect you to [...]

15 Comments Continue Reading →