Notice the onLoad event on the frameset. My test is failing as the webConversation.getFrameContents(“navbar”) throws an exception saying that there is no such frame. I could not get this to work by any means.
Any idea how I can get this to work ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a jps such as:
<script language="javascript">
function setFocus(){
parent.workarea.focus();
}
</script>
<html>
<frameset id="application" title="Application" rows="60,*" onload="setFocus();" framespacing="0" frameborder="1">
<frame noresize id="navbar" name="navbar"
src='<c:url value="/action1.do" />' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" />
<frame class="workArea" id="workarea" name="workArea" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"
src='<c:url value="/action2.do" />' />
</frameset>
</html>
Notice the onLoad event on the frameset. My test is failing as the webConversation.getFrameContents(“navbar”) throws an exception saying that there is no such frame. I could not get this to work by any means.
Any idea how I can get this to work ?
Thanks.