> Eric, your advise works for not opening a new tiddler while still
> switching the left menu.
> But it still closes any open tiddler too.
> By removing also the preceeding line:
>  story.closeAllTiddlers();
> an alert shows up, that I'm about to leave the page, and it does go
> blank with a small 'none' in the upper left corner if I proceed.

You need to make sure that each link handler (the
href="javascript:...." part) ends with:
   return false;

This will prevent the browser from atttempting a page transition.

The reason this occurred is that the 'return value' from the href-
invoked script is always equal to the value of the last statement or
expression evaluated.  "story.closeAllTiddlers()" has an implicit
value of 0 (equivalent to 'false').  As such, when that was the last
statement, the script was returning false... hence, no page
transition.

However, when you removed that last statement, the previous statement
(i.e., 'docment.getElementById(...).style.display="none") then became
the last one... and, because the value of an assignment statement is
the same as the value that is being assigned, the script as a whole
takes on a 'return value' of "none".

The result: a page transition occurs, and the return value "none" is
used as the target content for the new page, just as you observed.

enjoy,
-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to