C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Training   ASP.NET Web Hosting    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

Play Silverlight Games or Submit your Silverlight applications and earn 90% AdSense revenue.

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




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:     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