3.0 beta 2

Active Undifined


I am getting an JS error Active undefined, whenever I run this in IE 6.0

This line is giving problem.

var obj = new Active.Controls.Grid;

But the same thing is running fine on IE 5.5.

Please can anyone help me with this?

June 20,
The grid.js file is not getting fully loaded before you are trying to instantiate the grid object. Show me the code that you have for loading the grid.js file and where you are calling the grid create.
Jim Hunter
June 20,
Hi Jim,

First of all, Thanks for your reply. Here is the code snippet,

I am using XSL.
To start with in a CDATA section I am including the JS file and creating the grid object.
<xsl:text disable-output-escaping="yes">
<link href="/js/runtime/styles/xp/grid.css" rel="stylesheet" type="text/css"/>
<script language='JavaScript' src='/js/Active/runtime/lib/grid.js'></script>
<script language='JavaScript'>
//create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
In the later part of the code in a template I am accessing this obj. I am building arrays of column headings and row data and using them.

//provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});

var alternate = function(){
return this.getProperty("row/order") % 2 ? "#f5f5f5" : "#FFFFFF";}

//set headers width/height

//set click action handler
obj.setAction("click", function(src){window.status = src.getItemProperty("text")});


I tried putting the logic of including the file outside CDATA section and initialising the grid just before using it. Even then no luck with it.

Looking forward for your help.

June 21,

The second line in the CDATA section is

<script language='JavaScript' src='/js/runtime/lib/grid.js'></script>

June 21,
Why are you using a CDATA section? Do you have a great reason for doing so? Check out this thread and you might learn that they are more of a pain then you might think:


Jim Hunter
June 22,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.