I'm not sure whether this is a grid question or an event question. I'm using 1.1 in Firefox 2.
In the following code, after a grid row is clicked on in one content pane, another tab is selected. When the new tab is selected, I get the following non-fatal error: n.offsetParent has no properties, undefined. Is there a grid method or an event method that I can call before selecting the new tab that would avoid this? Thanks.
// select reservation based on grid row select
oscars.Form.onResvRowSelect = function (/*Event*/ evt) {
var mainTabContainer = dijit.byId("mainTabContainer");
var resvDetailsPaneTab = dijit.byId("reservationDetailsPane");
// at this point, grid is on a different pane
var resvGrid = dijit.byId("resvGrid");
// get reservation's global reservation id
var gri = resvGrid.model.getDatum(evt.rowIndex, 0);
var formParam = dojo.byId("reservationDetailsForm");
formParam.gri.value = gri;
// get reservation details
dojo.xhrPost({
url: 'servlet/QueryReservation',
handleAs: "json-comment-filtered",
load: oscars.Form.handleReply,
error: oscars.Form.handleError,
form: dojo.byId("reservationDetailsForm")
});
// Set tab to reservation details.
// Note that this generates an error message (non-fatal), but number
// of error messages builds up and could be confusing to a user.
mainTabContainer.selectChild(resvDetailsPaneTab);
};