Witam, mam problem z poniższym kodem. Testowałem go pod FF i operą, gdzie wszystko wykonuje się tak jak powinno. Natomiast IE nie pokazuje niczego :| Po całym wieczorze, spędzonym przed kompem, nie doszedłem do niczego konstruktywnego. Czy ktoś wie, co nie pasuje IE ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Untitled Page</title>
<link rel="stylesheet" href="StyleSheet.css" />
<script type="text/javascript">
//********************************
function cButton(capacity)
{
var content = capacity;
var grafPath = null;
var rootHandler = document.createElement("tr");
var nodeHandler = document.createElement("td");
this.getAttribute = function(name)
{
return nodeHandler.style[name];
}
this.setAttribute = function(name, value)
{
nodeHandler.style[name] = value;
return nodeHandler.style[name];
}
this.getContent = function() {};
this.setContent = function() {};
this.getHandler = function()
{
with(nodeHandler.style)
{
height = height||"auto";
width = width||"200px";
}
nodeHandler.innerHTML = content||"button";
rootHandler.appendChild(nodeHandler);
return rootHandler;
}
} // cButton()
function loadScript()
{
m = document.createElement("table");
document.body.appendChild(m);
b = new cButton();
m.appendChild( b.getHandler() );
//alert( b.setAttribute("width", "100px") );
}
</script>
</head>
<body onload="loadScript()">
</body>
</html>
```