![]() |
A few more functions...
Another set of functions I have used to make my life easier.
By chance someone else will find use for them. Once again I write for IE (4 to 6) as that is what I have to use. PHP Code:
|
You might want to put comments inside each one describing its purpose, what inputs it requires and what its output will be as well as what browsers it works in.
|
That would help :)
Added some comments. Will |
thanks
thanks :)
|
Sorry man, but most of my comments are critisism:
Disabling the backspace key is not something I would condone. Manipulating keyboard returns as part of form validation is, imo, a highly dubious practise which creates confusion for users. And doing it in order to "control" history navigation is even worse - you simply shouldn't be trying to do that, and it only affects unaware IE-users anyway, compounding the perception of that browser as a security monster with no respect for user's preferences. btw - does cancelBubble really have that effect in IE? That doesn't make any sense, because keyboard events don't bubble. I also disagree with the use of modal dialogues, whether on the web or in local applications. I consider them the last resort of bad interface design, forcing the user into a fixed order of input purely for the convenience of the author. |
All my sites are Intraweb, I'm not using that as an excuse. What that does mean is, I know my users. To be honest, most of them are brick dumb. Any complication that I can avoid by limiting the actions and activities of my users I will do. They thank me and the support desk thanks me.
If I had suave users I could do things different. It would be less work for me and in general make my life easier. I would welcome it. The process of educating users is sloooow, at least with mine. I have not the time, energy or money to deal with it in a proper fashion. By giving my users less freedom, I give them less ways to hurt themselves. Why? Because that means I and my developers spend less time cleaning up the mess of a "user error" and more time doing productive work. (I know user errors should not cause huge problems in well designed systems, but I did not design the old systems I have to interface with) And yes onKeyDown, onKeyUp and onKeyPress do bubble in IE6. btw criticism is the only way any of us get better. We must question ourselves and others. Please keep it up. Thanks, Will |
| All times are GMT +1. The time now is 11:52 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.