J
Jason
I have a web page that contains textareas. These are dynamically
added via asp when the page loads based on database records. The user
also has the ability to add more text areas via innerhtml. If the
user clicks the add text area button too fast or too many times.. they
will get the following error:
Internet Explorer Has Encountered a Problem and Needs to Close.
After reading msdns page about this error I doubt that there is a fix
to this. However, any suggestions on how I could work around this
error with a different approach than innerhtml? Any help would be
greatly appreciated. Please see the example below.
<html>
<script language="javascript">
function addvalue(){
myid.innerHTML += '<div id="mydiv2"><table border=0 cellpadding=0
cellspacing=0><tr><td width=80 align="center"> <td><td><textarea
name="mytext"></textarea></td></tr></table></div>';
}
</script>
<body>
clicking too fast can cause ie
error<table><tr><td><table><tr><td><table><tr><td>
<input type="button" OnClick="addvalue();" value="add text area">
<div id="myid"><%
'asp code that dynamically adds textareas
%>
</td></tr></td></tr></td></tr></table>
</div>
</body>
</html>
added via asp when the page loads based on database records. The user
also has the ability to add more text areas via innerhtml. If the
user clicks the add text area button too fast or too many times.. they
will get the following error:
Internet Explorer Has Encountered a Problem and Needs to Close.
After reading msdns page about this error I doubt that there is a fix
to this. However, any suggestions on how I could work around this
error with a different approach than innerhtml? Any help would be
greatly appreciated. Please see the example below.
<html>
<script language="javascript">
function addvalue(){
myid.innerHTML += '<div id="mydiv2"><table border=0 cellpadding=0
cellspacing=0><tr><td width=80 align="center"> <td><td><textarea
name="mytext"></textarea></td></tr></table></div>';
}
</script>
<body>
clicking too fast can cause ie
error<table><tr><td><table><tr><td><table><tr><td>
<input type="button" OnClick="addvalue();" value="add text area">
<div id="myid"><%
'asp code that dynamically adds textareas
%>
</td></tr></td></tr></td></tr></table>
</div>
</body>
</html>