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>
</Canvas>
</members>
</HLayout>
<Canvas ref="footerCanvas" contentsType="page" overflow="auto" canDragResize="true" border="1" height="5%" showEdges="true">
<contentsURL><%=context%>/<tiles:getAsString name="footer"/>;jsessionid=<%=session.getId()%></contentsURL>
</Canvas>
</members>
</VLayout>
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