> Clicking the items in the TopMenu:
> 'PageTemplate' shows the effect of removing
> story.displayTiddler(null,'MenuItems');
> 'StyleSheet' by also replacing
> story.closeAllTiddlers(); with return false;
> What I've done wrong?
Because you are using the href="..." to define the handler, you can't
use the 'return false;' syntax.
Here's a better bit of HTML syntax using the onclick="..." handler
<a href="javascript:;" onclick="if (story) {
document.getElementById('mainMenuD').style.display = 'block';
document.getElementById('mainMenuA').style.display = 'none';
...
document.getElementById('mainMenuJ').style.display = 'none';
return false;
}">StyleSheet</a>
-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---