3.2.0

Object cannot be created in this context

Hi there,

I have an AJAX process that returns an XML string, which I'd like to pass directly to the grid. Here's my code:

var table = new Active.XML.Table;
table.setXML(request.responseText);
var obj = new Active.Controls.Grid;
obj.setRowCount(table.getCount());
obj.setProperty("column/count", 5);
obj.setModel("data", table);
document.write(obj);

When I run this code, I get an exception that says:

[Exception... "Object cannot be created in this context" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://resortscope.com/js/portal/ActiveWidgets/runtime/lib/grid.js Line: 23"]

Any hints?
Erich Beyrent
January 30,

This topic is archived.

See also:


Back to support forum