Author: ayanul
Date: 2007-11-05 07:44:15 -0500 (Mon, 05 Nov 2007)
New Revision: 3756
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
Log:
fix js bug for IE
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-05
12:31:58 UTC (rev 3755)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-05
12:44:15 UTC (rev 3756)
@@ -10,9 +10,19 @@
<title></title>
<script type="text/javascript">
- function print(info, text){
- window.document.getElementById(info).value = text;
- window.document.getElementById(info).type = "text";
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
}
</script>
<link rel="stylesheet"
@@ -33,11 +43,11 @@
<f:facet name="controls">
<h:graphicImage value="/pics/error.gif"
onclick="Richfaces.hideModalPanel('eventInfoID');"/>
</f:facet>
+
<ui:include src="/pages/Action/EventInfo.xhtml" />
-
+
</rich:modalPanel>
<a4j:commandButton value="Show event"
onclick="Richfaces.showModalPanel('eventInfoID');return
false;"></a4j:commandButton>
-
</body>
</f:view>
</html>
Show replies by date