C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

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




DHTML Editor


Posted Date: 13 Aug 2008      Total Responses: 1

Posted By: Nagamalleswari       Member Level: Silver     Points: 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
You must Sign In to post a response.
Next : loginpage
Previous : dotnet
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

fax server

Contact Us    Privacy Policy    Terms Of Use