Button does not appear
Hi,
I wrote the following code. I can see the html text but not the button
<html>
<head>
<title>Job Functions</title>
<script language="JavaScript" src="../../../runtime/lib/grid.js"></script>
<link href="../../runtime/styles/xp/grid.css" rel="stylesheet" type="text/css"/>
</head>
<body>
Deepak7
<script>
// create ActiveWidgets component
var obj = new AW.UI.Button;
// set the display text
obj.setControlText("Click me");
// assign click event handler
obj.onControlClicked = function(){
this.setControlText("Hello World!");
};
// add component to the page
document.write(obj);
</script>
</body>
</html>
I wrote the following code. I can see the html text but not the button
<html>
<head>
<title>Job Functions</title>
<script language="JavaScript" src="../../../runtime/lib/grid.js"></script>
<link href="../../runtime/styles/xp/grid.css" rel="stylesheet" type="text/css"/>
</head>
<body>
Deepak7
<script>
// create ActiveWidgets component
var obj = new AW.UI.Button;
// set the display text
obj.setControlText("Click me");
// assign click event handler
obj.onControlClicked = function(){
this.setControlText("Hello World!");
};
// add component to the page
document.write(obj);
</script>
</body>
</html>
Deepak
January 4,