3.2.0

this.getContent("sample").element() has no properties

Hi every one, im getting this error: this.getContent("sample").element() has no properties, when loading a grid from an AJAX call, grid shows and works as usual, just getting the error, any ideas why is that?

Gapz
August 30,
Can you give more details? Does it happen both in IE and FF? How do you create/update the grid?
Alex (ActiveWidgets)
August 31,
This is the javascript response from the server, and all i do is eval() that code, only shows error on FF on explorer shows no error


var gridCambiaUsu_ = new AW.Grid.Extended;

                      gridCambiaUsu_.setId("gridCambiaUsu");

                      gridCambiaUsu_.setCellText(gridCambiaUsuData_);

                      gridCambiaUsu_.setHeaderText(gridCambiaUsuHeaders_);

                      gridCambiaUsu_.setSelectorVisible(true);

                      gridCambiaUsu_.setSelectorText(function(i){return this.getRowPosition(i)+1});

                      gridCambiaUsu_.setSelectionMode("single-row");

                      gridCambiaUsu_.setFixedLeft(1);

                      gridCambiaUsu_.setColumnCount(8);

                      gridCambiaUsu_.setRowCount(8);

                      gridCambiaUsu_.refresh();
Gapz
September 3,
Sorry, I cannot reproduce this. Which version of AW are you using? Which version of FF? Does it happen on a particular machine or on all? Does it happen on empty page?
Alex (ActiveWidgets)
September 4,
AW version is 2.0.2
Firefox is 2.0.0.6 and debugger is FireBug 1.05

No, it is not an empty page, grid shows on a Div that had Data before Ajax Event. like this:

<div id="contentToReplace">
   <!--HTML Code-->
   <div id="gridCambiaUsu"></div>
</div>




Gapz
September 4,
I also received the
this.getContent("sample").element() has no properties
error in Firefox 2.0.0.7.

Your error may be caused by something different, but my error was caused by the alert line in the following code:
var queue = new AW.UI.Grid();
alert("setting div = " + queue);
div.innerHTML = queue;


The error disappeared after I removed the alert.
Toby
October 4,
I forgot to mention that it was ActiveWidgets 2.0.2.
I should also have mentioned that there were other lines of code for initializing the grid before calling the alert statement.
Toby
October 4,

This topic is archived.

See also:


Back to support forum