3.2.0

widgets on tab page

I am loading data onto the tab pages using your supplied ajax calls then calling eval() on the script just like in you examples. It works great!

The problem is that I can't access the AW.UI.... objects that have been placed on the tab. I can access them from other controls on the same tab but NOT from anywhere else. If I call document.getElementById("gridobject") I get a null value. I have been searching through the DOM inspector (endlessly) in firebug and I don't see any of the elements that have been loaded onto the page via the ajax call.

Any insight appreciated.
Erik Dobrie
April 4,
Strange - the sample code (/examples/controls-tabs/code.htm) shows fine in firebug - click on firebug 'inspect' button and then on any grid element. Do you have multiple frames/iframes on your page? Are you calling getElementById() after the content has arrived?
Alex (ActiveWidgets)
April 4,
I didn't explain my problem correctly, sorry. Using your example: /examples/controls-tabs/code.htm while on tab1 (default) you can type document.getElementById("myGrid") and get the span by ID. How can I access the grid object (or other widget) and call functions like .refresh(), .setControlText(), .setSize(), etc...

I guess I don't know how to re-reference the object from controls outside the current tab.
Erik Dobrie
April 4,
Sorry, maybe I still don't understand what you are asking. IF you are looking for a function which returns object reference from the id - there is an internal method - AW.object(id),

var grid = AW.object("myGrid");
Alex (ActiveWidgets)
April 7,

This topic is archived.

See also:


Back to support forum