C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

DHTML Editor


Posted Date: 13 Aug 2008      Posted By: Nagamalleswari      Member Level: Silver     Points: 1   Responses: 1



Hi all I am using .NET1.1 and 3rd party control DHTML Editor client asked whaen we are entering the characters we need characters count also in this DHTML editor textbox is 'div' tag counting is not comming correctly because i am facing problem with counting. I used javascript code for counting(<div onkeyup="count();">)
count is javascript function.
Please any one help me.

Thanks,
Malleswari.





Responses

Author: Ramya    13 Aug 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

Have a div tag
<div id="myDiv" onkeyup="javascript:CountNum();">

Have a textbox
<input type="text" onchange="javascript:CountNum();"/>

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

var Cnt =0;

function CountNum()
{
Cnt = Cnt + 1;
alert(Cnt);
}

</script>



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : loginpage
Previous : dotnet
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use