:: Forum >>

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>
Deepak
Thursday, January 4, 2007
The button class is not available in version 1.0
Alex (ActiveWidgets)
Thursday, January 4, 2007

This topic is archived.


Back to support forum

Forum search