From: "Matt Raible" <[EMAIL PROTECTED]> > I've updated the TabbedMenuDisplayer to have both an onclick and a > target attribute (if specified in menu-config.xml). Attached is the > latest CVS snapshot.
So far I'm not having success, but I can't really pin it on struts-menu because the <hrefs> it's generating look *exactly* like the ones elsewhere on the page that work fine. Maybe someone who knows more about JavaScript can help? >From struts-menu: <div id="menuDiv"><ul id="menuList"> <li><a href="noscript.html" title="Authorized Accounts" onclick="standardTab();return false;">Authorized Accounts</a></li> <li><a href="noscript.html" title="Manual Lookup" onclick="advancedTab();return false;">Manual Lookup</a></li> </ul></div> Clicking on those links sends the browser (IE6 or Netscape7.02) to the 'noscript.html' page. :( Yet further down on my page, I have: <p class="tiny"> <a href="noscript.html" onclick="sortByFund();return false;">Sort By Fund</a> <a href="noscript.html" onclick="sortByCostCenter();return false;">Sort By Cost Center</a> <a href="noscript.html" onclick="setAllAccounts(true);return false;">Check All</a> <a href="noscript.html" onclick="setAllAccounts(false);return false;">Uncheck All</a> </p> And those work absolutely fine. All of the functions being called are written into the page, not in the <head> but above where the links are. (Does that matter?) They look like this: <script language="JavaScript"> function advancedTab() { document.forms[0].mode.value="Advanced"; document.forms[0].submit(); } function sortByCostCenter() { document.forms[0].mode.value="SortByCostCenter"; document.forms[0].submit(); } </script> Thanks for any advice, I don't understand why the top two are not working. -- Wendy Smoak ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user