FELIX-1808 Oh my ... IE6 does not accept event handlers when using
dynamic DOM creation ... so we do innerHTML generation and have the
browser parse and setup the DOM internally. This works now.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@829792 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/configmanager.js b/webconsole/src/main/resources/res/ui/configmanager.js
index 3ee8a78..5ee6957 100644
--- a/webconsole/src/main/resources/res/ui/configmanager.js
+++ b/webconsole/src/main/resources/res/ui/configmanager.js
@@ -153,7 +153,7 @@
     trEl.appendChild( tdEl );
 
     // define this TD as innerHTML otherwise the onClick event handler
-    // of the Delete button is not accepted by IE...    
+    // of the Delete button is not accepted by IE6 (!)...    
     var innerHTML = '<input type="submit" class="submit" name="submit" value="Save" />';
     innerHTML += '&nbsp;&nbsp;&nbsp;';
     innerHTML += '<input type="reset" class="submit" name="reset" value="Reset" />';
@@ -300,29 +300,22 @@
     
     if (obj.bundleLocation)
     {         
+        var form = createElement( "form", null, {
+                        method: "POST",
+                        action: pluginRoot + "/" + obj.pid
+                    });
+
+        // define this form contents as innerHTML otherwise the onClick
+        // event handler of the Unbind button is not accepted by IE6 (!)...
+        var formInner = '<input type="hidden" name="unbind" value="true"/>';
+        formInner += '<input type="submit" name="submit" value="Unbind" class="submit" title="Unbind Configuration from Bundle"  onClick="return confirmUnbind(\'' + obj.pid + '\', \'' + obj.bundleLocation + '\');"/>';
+        form.innerHTML = formInner;
+    
         parent.appendChild( tr( "content", null, [
                 td( "content", null, [
                     text( " " )
                 ]),
-                td( "content", null, [
-                    createElement( "form", null, {
-                            method: "POST",
-                            action: pluginRoot + "/" + obj.pid
-                        }, [
-                            createElement( "input", null, {
-                                type: "hidden",
-                                name: "unbind",
-                                value: "true"
-                            }),
-                            createElement( "input", "submit", {
-                                type: "submit",
-                                name: "submit",
-                                value: "Unbind",
-                                title: "Unbind Configuration from Bundle",
-                                onClick: "return confirmUnbind('" + obj.pid + "', '" + obj.bundleLocation + "');"
-                            })
-                        ])
-                ])
+                td( "content", null, [ form ] )
             ])
         );
     }