Click here to Skip to main content
15,898,134 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: textarea goes blank Pin
idsanjeevjha27-Nov-07 22:51
idsanjeevjha27-Nov-07 22:51 
GeneralRe: textarea goes blank Pin
_AK_27-Nov-07 23:11
_AK_27-Nov-07 23:11 
GeneralRe: textarea goes blank Pin
idsanjeevjha27-Nov-07 23:47
idsanjeevjha27-Nov-07 23:47 
GeneralRe: textarea goes blank Pin
_AK_28-Nov-07 0:01
_AK_28-Nov-07 0:01 
GeneralRe: textarea goes blank Pin
idsanjeevjha28-Nov-07 15:50
idsanjeevjha28-Nov-07 15:50 
GeneralRe: textarea goes blank Pin
_AK_28-Nov-07 18:52
_AK_28-Nov-07 18:52 
GeneralRe: textarea goes blank Pin
idsanjeevjha28-Nov-07 20:55
idsanjeevjha28-Nov-07 20:55 
GeneralRe: textarea goes blank Pin
_AK_28-Nov-07 21:44
_AK_28-Nov-07 21:44 
There can be two ways one if you want to check whether the use has entered the character more that required then you can check it in a javascript function and then call that function on clickevent of the button (or whenever you want to check).
Second way can be to restrict the user to exceed the max length of the textarea. Because textarea is not having maxlength property for it what you need to do is to create a javascript function and call it on the keypress event of the textarea and then check whether it is exceeding or not. This can be achieved like this.
Here is the javascript function:

<script language="javascript" type="text/javascript">

function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}

</script>

And here is how you have to use that function:

<textarea name="aa" onkeypress="return imposeMaxLength(this, 15);" ><textarea>



Apurva Kaushal
GeneralRe: textarea goes blank Pin
idsanjeevjha28-Nov-07 23:32
idsanjeevjha28-Nov-07 23:32 
GeneralRe: textarea goes blank Pin
_AK_28-Nov-07 23:42
_AK_28-Nov-07 23:42 
GeneralRe: textarea goes blank Pin
idsanjeevjha29-Nov-07 0:01
idsanjeevjha29-Nov-07 0:01 
GeneralRe: textarea goes blank Pin
_AK_29-Nov-07 0:15
_AK_29-Nov-07 0:15 
QuestionImage not to Reload again and again Pin
Amjath Rahman27-Nov-07 14:44
Amjath Rahman27-Nov-07 14:44 
AnswerRe: Image not to Reload again and again Pin
Christian Graus27-Nov-07 15:00
protectorChristian Graus27-Nov-07 15:00 
GeneralRe: Image not to Reload again and again Pin
Amjath Rahman27-Nov-07 15:10
Amjath Rahman27-Nov-07 15:10 
QuestionImages in popup Pin
Christian Graus27-Nov-07 9:15
protectorChristian Graus27-Nov-07 9:15 
AnswerRe: Images in popup Pin
Shog927-Nov-07 11:07
sitebuilderShog927-Nov-07 11:07 
GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 11:29
protectorChristian Graus27-Nov-07 11:29 
GeneralRe: Images in popup Pin
Shog927-Nov-07 11:36
sitebuilderShog927-Nov-07 11:36 
GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 11:51
protectorChristian Graus27-Nov-07 11:51 
GeneralRe: Images in popup Pin
Shog927-Nov-07 12:00
sitebuilderShog927-Nov-07 12:00 
GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 12:10
protectorChristian Graus27-Nov-07 12:10 
Questionsolution? Pin
s4_sabahatf27-Nov-07 7:04
s4_sabahatf27-Nov-07 7:04 
AnswerRe: solution? Pin
pmarfleet27-Nov-07 7:15
pmarfleet27-Nov-07 7:15 
AnswerRe: solution? Pin
andyharman27-Nov-07 8:06
professionalandyharman27-Nov-07 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.