Mar 24, 2009, 10:09 AM
TextArea Text property, strange behaviour in chrome
Hi
I noticed a strange behaviour on chome, Im having a hard time, figuring out exactly what the problem is. But look at this code, this does not work for me in chrome, works in IE.
EDIT
What happens is that the TextArea1 does not get set, with the value. But if the height is removed from the TextArea, then it works.
/Mikael
I noticed a strange behaviour on chome, Im having a hard time, figuring out exactly what the problem is. But look at this code, this does not work for me in chrome, works in IE.
EDIT
What happens is that the TextArea1 does not get set, with the value. But if the height is removed from the TextArea, then it works.
/Mikael
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<script type="text/javascript">
</script>
<title></title>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
}
protected void SetText(object sender, AjaxEventArgs e)
{
TextArea1.Text = "2009-03-24 13:26rad\n2009-03-24 13:26rad\n2009-03-24 13:26rad\n2009-03-24 13:26rad\n2009-03-24 13:26rad\n2009-03-24 13:26rad\n2009-03-24 13:27rad\n";
TextArea2.Text = "";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" InitScriptMode="Inline" ScriptMode="Debug"> </ext:ScriptManager>
<table cellpadding="0" cellspacing="0">
<tr>
<td><ext:TextArea Height="160" Width="580" runat="server" ID="TextArea1"></ext:TextArea></td>
</tr>
<tr style="height:10px;"><td></td></tr>
<tr>
<td><ext:TextArea Height="160" Width="580" runat="server" ID="TextArea2"></ext:TextArea></td>
</tr>
</table>
<ext:Button runat="server" Text="Set text" ID="btnSubmit"><AjaxEvents><Click OnEvent="SetText"></Click></AjaxEvents></ext:Button>
</form>
</body>
</html>