HTMLPane access to internal javascript objects?

Hey All,

Trying to convert code that used GWT Frame class to SmartGWT HTMLPane class. The issue I am having is with some custom native methods that were written that access elements of the page loaded inside the Frame/HTMLPane.

The old GWT Frame code:

 Element iFrameElement = iFrame.getElement();

passed into a native method where the following objects would be retrieved

/*-{
	    var spanTermArrays;
	    if (iFrame.contentWindow != null)
	        spanTermArrays = iFrameElement.contentWindow ...
	    else
	        spanTermArrays = iFrameElement.contentDocument ...

....

	    }
	}-*/;

In SmartGWT “contentWindow” and “contentDocument” are undefined. Are there corresponding objects in the SmartGWT implementation? If not how do I go about getting the object?

thanks

Hi drain,

For this kind of direct-to-DOM stuff you’re probably better of starting with a Canvas and providing contents that include an iframe with a predictable DOM ID.