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.
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits