Accessing HTML components contained in Canvas

I am new to smart client so please bear with me.

we are evaluating smart client and converting our existing jsp application. Our current code tries to access div’s that are inside the header frame from a content frame.

We have roughly coverted our tiles framework as follows.

<VLayout ID=“pageLayout” width=“100%” height=“100%” layoutMargin=“2”>
<members>
<Canvas ID=“headerCanvas” contentsType=“page” padding=“0” margin=“0” canDragResize=“true” height=“12%” border=“1” showEdges=“true”>
<contentsURL><%=context%>/<tiles:getAsString name=“header”/>;jsessionid=<%=session.getId()%></contentsURL>
</Canvas>
<HLayout ID=“pageHLayout” width=“100%” height=“100%” layoutMargin=“2”>
<members>
<Canvas ID=“menuCanvas” width=“20%” contentsType=“page” overflow=“auto” canDragResize=“true” border=“1” showEdges=“true”>
<contentsURL><%=context%>/<tiles:getAsString name=“menu”/>;jsessionid=<%=session.getId()%></contentsURL>
</Canvas>
<Canvas ID=“paneCanvas” contentsType=“page” overflow=“auto” canDragResize=“true” border=“1” showEdges=“true”>
<contentsURL><%=context%>/<tiles:getAsString name=“body”/>;jsessionid=<%=session.getId()%></contentsURL>

               	 	&lt;/Canvas&gt;                   	 	
               	 &lt;/members&gt;
        	&lt;/HLayout&gt;
            &lt;Canvas ref="footerCanvas" contentsType="page" overflow="auto" canDragResize="true" border="1" height="5%" showEdges="true"&gt;
                  	  &lt;contentsURL&gt;&lt;%=context%&gt;/&lt;tiles:getAsString name="footer"/&gt;;jsessionid=&lt;%=session.getId()%&gt;&lt;/contentsURL&gt;
            &lt;/Canvas&gt;
			&lt;/members&gt;
	&lt;/VLayout&gt;	

So we are trying to access the divs that are in one Canvas from another canvas. I am not sure this is the best way to do it but I am looking to simply convert the existing application

like statements like this .

window.parent.document.getElementById(“still”).style.display = “inline”;

The div ‘still’ exists in the header tag and we are trying access it from bodyCanvas.

Thanks
Raj

Did you notice the response to your other post? By specifying contentsType:“page” you are causing IFrames to be created. Just avoid doing so and you will be able to access elements normally.