[Codestriker-commits] CVS update: codestriker/html codestriker.js
Brought to you by:
sits
|
From: <si...@us...> - 2005-05-24 08:28:16
|
Created Codestriker topic at: http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=6331404&action=view User: sits Date: 05/05/24 01:27:57 Modified: html codestriker.js Log: Fixes so that IE can modify the sttaus text. Index: codestriker.js =================================================================== RCS file: /cvsroot/codestriker/codestriker/html/codestriker.js,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- codestriker.js 23 May 2005 22:48:10 -0000 1.9 +++ codestriker.js 24 May 2005 08:27:56 -0000 1.10 @@ -324,8 +324,13 @@ function setStatusText(newStatusText) { cs_status_element.className = 'error'; - var newStatusTextNode = document.createTextNode(newStatusText); - cs_status_element.replaceChild(newStatusTextNode, cs_status_element.childNodes[0]); + if (is.ie) { + cs_status_element.innerText = newStatusText; + } + else { + var newStatusTextNode = document.createTextNode(newStatusText); + cs_status_element.replaceChild(newStatusTextNode, cs_status_element.childNodes[0]); + } } // Function for handling state changes to the request object. |