Microsoft
Software
Hardware
Network
Question : Javascript error in Chrome when setting innerHTML or innerText
I need to set the text on a hidden asp:textBox in javascript. The Script works fine in FF and IE but fails in Chrome. Does anyone know how to correct or work around this issue? The attached HTML when run in Chrome will give the error. Thanks
chromeError.htm
(605 bytes)
(File Type Details)
HTML to produce error
Answer : Javascript error in Chrome when setting innerHTML or innerText
You need no innerHTML, innerText.
The correct attribute name is: value
Like this:
<script language=javascript>
function loadText(txt) {
try {
var el = document.getElementById("T
ext1");
el.value = txt;
}
catch (err) {
alert(err);
}
}
</script>
Random Solutions
Not downloading Offline address book files. A server (URL) could not be located. 0X8004010F
importing the data into table having xml datatype using db2 import.
ORACLE SQL similarity with SQL Server
ADmodify.exe "mailbox rights modification disabled" ??
Repeater Enable/Disable RequiredFieldValidator depending a textbox
"outlook.ost cannot be accessed because it has been configured for usw with a different mailbox"
Java Open Source Barcode Software
How to reset the sametime password for a single user
Java SAX
How do I change the default Domain extension for SBS 2008 in Exchange for all users?