Originally posted by Andy Bowes:
Hi Steve,
The eTrade site top-menu is server-side code not JavaScript. When you click on a menu a request for the page is sent to the server. The page itself knows which menu option should be highlighted.
This can be acheived quite easily using JSPs. Typically you will create a separate JSP that just generates the menu section page and then include this at the top or your main JSPs using <%jsp:include %>. A more elegent alternative would be to use the templating ability supported by Tiles which are part of the Apache Struts project
[ April 08, 2003: Message edited by: Andy Bowes ]
Thanks lot Andy, I looked at the "source" of eTrade web site and saw the follwoing thing --
href="javascript:GoToETURL('/e/t/invest',''); //">Investing</a>
it seems that once the "Investing" tab is clicked, it uses javascript to connect to a server side code and returns back a separate page.
I certainly hope this whole thing can be done without javascript. Could you show me any sample code or web site that uses only JSP/html skill to do the top menu tab thing ? That will be greatly helpful.
Thanks.