How to fire event in client side?
-
Hello everyone I have a simple web form with a textarea and a label.I'd like that when i type or delete a character in textarea the label will display the current number of characters in textarea.I've used Textbox server control (multiple line).I used the TextChanged event of the textbox but it just fired when i leave the textbox(i think it submits to the server at that time) not while i'm typing.How can i fire this event in client (means that it fire whenever there is a change in textarea)?Thanks for reading
-
Hello everyone I have a simple web form with a textarea and a label.I'd like that when i type or delete a character in textarea the label will display the current number of characters in textarea.I've used Textbox server control (multiple line).I used the TextChanged event of the textbox but it just fired when i leave the textbox(i think it submits to the server at that time) not while i'm typing.How can i fire this event in client (means that it fire whenever there is a change in textarea)?Thanks for reading
-
you need to use client side scripts for that, such as javascript or vbscript (only in IE).
-
I wrote a function (print a welcome message) for onchange event of textarea but it just fire when i left the textarea not while i'm typing and it forward to another screen in which just have welcome message.How to resolve this problem?Thnx for reading
u have to use ajax for this kind of issue with regards, susa
-
u have to use ajax for this kind of issue with regards, susa
hey , sorry man but i wanna ask you , what is this ajax & how can i use it please ? thank you i'm a beginner & i need some help :) try to be good if you can't be the best
-
you need to use client side scripts for that, such as javascript or vbscript (only in IE).
Hey, sorry man but can you tell me how to use that script ? i didn't understand i'm just a beginner can you explain more ?? thank you for your help try to be good if you can't be the best