Thanks! Both solutions work in all 3 browsers.

But why? I'm guessing Colm's way does some typecasting to avoid
talking about the wrong object...? But then why is that not needed in
Eric's onclick?

Kosmaton (speaking mere phrasebook Javascript)


On Jan 21, 2:13 pm, Eric Shulman <[email protected]> wrote:
> > <a href="javascript:story.displayTiddler(null,'SomeTiddler');" >try!</
> > a>
>
> <a href="javascript:;"
> onclick="story.displayTiddler(null,'SomeTiddler'); return false">try!</
> a>
>
> Note: instead of using the HREF for invoking the javascript, a
> separate onclick handler is used.  For most mainstream browsers, when
> the onclick handler returns FALSE, it completely bypasses the HREF
> trigger.  In any case, if the HREF should somehow still be triggered,
> it is now just a simple javascript PLACEHOLDER 'blank statement' to
> ensure that no actual page transition behaviors can occur.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios

-- 
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