gracie
08-13-2003, 01:38 AM
In html coding, how do you code ur work so that when a person something it appears as *********?
For eg.
When a person wants to type a password in text box ( which consist of letters and numbers), how do i get it to show in the text box it appears as this "******" in the textbox, say if the password was " abc123" ?
Do you get what i mean? If so plz help Thanks alot !!!
jtrovato
08-13-2003, 01:42 AM
<input name="password" type="password" id="password" size="10" maxlength="10">
gracie
08-13-2003, 01:50 AM
thanks mate.!!!
you know for the textarea in html right by setting the rows u get the vertical scroll bar. How do i set it to have the horizontal scroll bar going as well?
BEcasue at the moment i set the cols and row to be 60 and 10 respectively and only the vertical scroll bar appears...
jtrovato
08-13-2003, 02:00 AM
<textarea name="textarea" cols="60" rows="10" wrap="OFF"></textarea>
cheers
Rich2k
08-13-2003, 04:43 AM
Please note that the wrap attribute is not valid XHTML.
You should use CSS
I've never tried this but in theory
textarea {white-space: pre;}
would work... although you might try white-space: nowrap instead
Website Rob
08-13-2003, 06:29 AM
WRAP has never been part of the W3C Standards as it was felt, the Browser Creators should decide how they want their Browser to handle it. Almost all Browsers will 'wrap' automatically anyway.
The reason a Vertical scrollbar is showing -- with a blank Textarea -- is because IE is being used. Other Browsers only show the Vertical scrollbar once the text input goes below the bottom of the Textarea settings -- which is the way it should be actually.
BTW, one should never "desire" to have a Horizontal scroll bar for anything on a Web page. ;)
If you would like to "fancy up" your Textare a bit, use something like the following:
<label for="textarea-message">-- Input Message Here -- </label><br />
<textarea id="textarea-message" name="message" rows="10" cols="36" onfocus="if(this.value=='Your Message...')this.value='';" onblur="if(this.value=='')this.value='Your Message...';">Your Message...</textarea>
This not only adds a handy feature (and looks different than 99.9% of the others) it is also Accessability correct.
jtrovato
08-13-2003, 10:31 AM
That's cool, there is something I need to learn... Java Script