Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: js to read editor height
Re: js to read editor height
05-18-2010, 4:18 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: js to read editor height
Reply
Quote
Hi wolf11th,
try
<%@ Page Language=
"C#"
ValidateRequest=
"false"
%>
<%@ Register TagPrefix=
"CE"
Namespace=
"CuteEditor"
Assembly=
"CuteEditor"
%>
<html>
<head>
</head>
<body>
<form id=
"Form1"
runat=
"server"
>
<CE:Editor ID=
"editor1"
runat=
"server"
Height=
"500"
>
</CE:Editor>
<input type=
"button"
value=
"Get editor height"
onclick=
"getHeight()"
/>
</form>
</body>
</html>
<script>
var editor1=document.getElementById(
"<%= editor1.ClientID %>"
);
function getHeight()
{
alert(editor1.offsetHeight);
}
</script>
Regards,
ken
View Complete Thread