I have two frames, one of them is the navigation frame, and the other is the content frame. To have the navigation bar works correctly, the content frame have to be invoked first, as I need to remeber which is the current page, then display the tab of the current page in different color. Just wondering if there is any way to force a refresh on the navigation frame right after the content frame is invoked.
Or, is that any other better way to handle this?
Thank you in advance.
-
How do we force a refresh in a frameset? (2 messages)
- Posted by: Janice Wong
- Posted on: December 01 2000 14:20 EST
Threaded Messages (2)
- How do we force a refresh in a frameset? by Ravi Sankar on December 06 2000 08:20 EST
- Refresh a JSP page.... by Leandro Soler on July 13 2005 14:38 EDT
-
How do we force a refresh in a frameset?[ Go to top ]
- Posted by: Ravi Sankar
- Posted on: December 06 2000 08:20 EST
- in response to Janice Wong
Hello,
If you just want to refresh the contents of the navigation frame after the content frame gets loaded then you write a java script funtion say reloadNavigationFrame() in the content frame. This function should be called on page load ie., <body onLoad="reloadNavigationFrame()"> </body>
Finally the function reloadNavigationFrame() should contain the code parent.navigationFrame.localtion.reload(). Where navigationFrame is whatever the name that you have given for the navigation frame.
Then the navigation frame gets refreshed.
But you mentioned that you want to display the tab in high light mode depending on the page selected. That means you need to pass additional information to the page in navigation frame using some request parameter.
Then the function code should be something like
parent.navigationFrame.location="navigationFrame.jsp?currentPage=home"
Regards,
Ravi Sankar Pabbati
GE India -
Refresh a JSP page....[ Go to top ]
- Posted by: Leandro Soler
- Posted on: July 13 2005 14:38 EDT
- in response to Janice Wong
I have a JSP page that is a frameset that have three jsp Pages in three frames, like this:
<html>
<frameset rows="105,100%,120" frameborder="NO" border="0" framespacing="0">
<frame src="header.jsp" name="topFrame" id="content1" scrolling="NO" noresize/>
<frame src="body.jsp" name="mainFrame" id="content2" scrolling="yes"/>
<frame src="footer.jsp" name="bottomFrame" id="content3" scrolling="NO" noresize/>
</frameset>
</html>
When I run Tomcat pointing to the app index, Tomcat show me only the header.jsp frame, but if I refresh the browser, show me the footer.jsp, I'm still refreshing and show me all the pages.
Why happen this? Is Tomcat problem?
Sorry for my poor english....