beennn Posted July 28, 2011 Share Posted July 28, 2011 how can i change a passwords masking from dots to asterisks? Link to comment Share on other sites More sharing options...
jeffman Posted July 28, 2011 Share Posted July 28, 2011 As far as I know, it cannot be done. I cannot see a reason for doing it, either. I'm curious to know why? Link to comment Share on other sites More sharing options...
beennn Posted July 28, 2011 Author Share Posted July 28, 2011 im trying to duplicate the password style from another application of mine but ok thank you. Link to comment Share on other sites More sharing options...
ShadowMage Posted July 28, 2011 Share Posted July 28, 2011 I cannot see a reason for doing it, either. I'm curious to know why?As OP said, aesthetics. There is no practical reason to turn text a different color, or to specify a fancy border, or make rounded corners on a button, but it's appealing to the eye and makes a page look better. The same would apply here. Perhaps a different mask would fit in better with the theme of the page or, like OP is trying to do, match another application.Maybe a future version of CSS will implement this... Link to comment Share on other sites More sharing options...
jeffman Posted July 28, 2011 Share Posted July 28, 2011 Elements that are derived from OS controls (e.g., most form inputs) usually don't have a lot of presentational options.EDIT. I admit that this one does seem easily managed. A lot easier than tweaking the exact shape and color of a button, in all OSs, for example. But I don't design the browser . . . Link to comment Share on other sites More sharing options...
thescientist Posted July 28, 2011 Share Posted July 28, 2011 I suppose you could just use javascript to obfuscate a normal input field by using 'custom' characters... Link to comment Share on other sites More sharing options...
ShadowMage Posted July 28, 2011 Share Posted July 28, 2011 Elements that are derived from OS controls (e.g., most form inputs) usually don't have a lot of presentational options.Yeah, I know. It's unfortunate. I wish there were more freedom with form inputs.... Link to comment Share on other sites More sharing options...
jeffman Posted July 28, 2011 Share Posted July 28, 2011 I thought of hacking a normal input. You could capture every keystroke and store it in a property, then display the character you like. But there are so many different events that can happen (like a paste), and handling what happens when the user repositions the cursor -- a lot of work for a simple aesthetic change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.