3.2.0

regarding javascript error while implementing grid

Hi,
I am implementing grid to my application. I am using aw.js and aw.css file from trial version. And I kept entire runtime folder in to my source. I given right path , but I am getting following js error in aw.js . I unable to figure out the problem . Please help me

Error: AW is not defined
Source File: https://10.2.65.117/js/runtime/lib/aw.js
Line: 29

thanks.
kiran.
kiran
May 31,
send code
raviurlams@gmail.com
May 31,
The following is the code,and if I remove aw.css file and xml from my source still I am getting same error. I think it is not finding css file (I given correct path only , I am sure bcuz aw.js file is finding but not css file) , Please help me.


var myData = [
["KNM", "Konami Corporation (ADR)", "3,710.784", ".000", "4313"]
];

var myColumns = [
"Ticker", "Company Name", "Market Cap.", "$ Sales", "Employees"
];

var obj = new AW.UI.Grid;

// define data formats
var str = new AW.Formats.String;
var num = new AW.Formats.Number;

//obj.setCellFormat([str, str, num, num, num]);
// provide cells and headers text
obj.setCellText(myData);
obj.setHeaderText(myColumns);
// set number of rows/columns
obj.setRowCount(1);
obj.setColumnCount(5);

// enable row selectors
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});

// set headers width/height
obj.setSelectorWidth(28);
obj.setHeaderHeight(20);

// set row selection
obj.setSelectionMode("single-row");

// set click action handler
obj.onCellClicked = function(event, col, row){window.status = this.getCellText(col, row)};

// write grid html to the page
document.write(obj);
kiran
May 31,
I am finding an error in gecko.xml file thats why grid is not coming fine the error is
"can not find the declaration of 'bindings'". Please help in this.
kiran
May 31,

This topic is archived.

See also:


Back to support forum