3.2.0

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

This topic is archived.

See also:


Back to support forum