summaryrefslogtreecommitdiffstats
path: root/tools/qtestlib/chart/benchmark_template.html
diff options
context:
space:
mode:
authorMorten Sørvig <msorvig@trolltech.com>2009-05-15 09:39:15 (GMT)
committerMorten Sørvig <msorvig@trolltech.com>2009-05-15 09:39:15 (GMT)
commit7c40487dce7c11c93444dc3c74fce84b09901d33 (patch)
treee183d39cd4ead1423369db1b9cdd7da9b9ea04a9 /tools/qtestlib/chart/benchmark_template.html
parentac98ab496ecfba9493e93f0e0323822a1c9ed2d6 (diff)
downloadQt-7c40487dce7c11c93444dc3c74fce84b09901d33.zip
Qt-7c40487dce7c11c93444dc3c74fce84b09901d33.tar.gz
Qt-7c40487dce7c11c93444dc3c74fce84b09901d33.tar.bz2
Make the charts work on internet explorer (tested on IE8)
Diffstat (limited to 'tools/qtestlib/chart/benchmark_template.html')
-rw-r--r--tools/qtestlib/chart/benchmark_template.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/qtestlib/chart/benchmark_template.html b/tools/qtestlib/chart/benchmark_template.html
index 11efd92..a7e48be 100644
--- a/tools/qtestlib/chart/benchmark_template.html
+++ b/tools/qtestlib/chart/benchmark_template.html
@@ -108,15 +108,25 @@ function checkform()
this.createChart();
}
+function createElement(nodeName, name) {
+ var node;
+ try {
+ node = document.createElement("<"+nodeName+" name="+name+">");
+ } catch (e) {
+ node = document.createElement(nodeName);
+ node.name = name;
+ }
+ return node;
+}
+
function createFormSelector(form, value, text, type)
{
- var selector = document.createElement('input');
- form.appendChild(selector);
+ var selector = createElement('input', 'list');
selector.type = type;
- selector.name = 'list';
selector.defaultChecked = true;
selector.value = value;
+ form.appendChild(selector);
form.appendChild(document.createTextNode(text));
form.appendChild(document.createElement("BR"));
}