links to twiddlers within an <html> tag

5 views
Skip to first unread message

Rashad Mahmood

unread,
Jul 29, 2008, 4:07:08 PM7/29/08
to TiddlyWiki
How do you link to a twiddler within an <html> tag? For example, say
my twiddler looks like this:

<html>
<img src="map.gif" style="border: none;" alt="Shapes" usemap="#shapes"/
>
<map name="shapes" id="shapes">

<area shape="circle"
coords="406,372,50"
href="HERE IS WHERE I WOULD LIKE A LINK TO THE CALIFORNIA TWIDDLER
APPEAR"
title="California" alt="California"/>

<area shape="default"
nohref="nohref" title="Default" alt="Default"/>

</map></html>

Note the comment in all caps after href= under the <area tag.

I've tried the standard things like [[California]] and even CaLifornia
(to create a new twiddler) but it doesn't work.

Thanks so much!

Rashad

Eric Shulman

unread,
Jul 29, 2008, 4:17:56 PM7/29/08
to TiddlyWiki
On Jul 29, 1:07 pm, Rashad Mahmood <lrmahm...@gmail.com> wrote:
> How do you link to a twiddler within an <html> tag? For example, say
> my twiddler looks like this:

(that's "tiddler"... omit the "w")

>         href="HERE IS WHERE I WOULD LIKE A LINK TO THE CALIFORNIA TWIDDLER
> APPEAR"

try this:

href="javascript:story.displayTiddler(null,'California')"

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Anthony Muscio

unread,
Jul 29, 2008, 6:43:08 PM7/29/08
to TiddlyWiki
Would;
href=file:///S:/Wiki/MasterDBV4.html#Auto
also work given this is the result of a permalink ?

I did not have the pre-requisites to test this my self.

Tony

FND

unread,
Jul 30, 2008, 3:04:43 AM7/30/08
to Tiddl...@googlegroups.com
> Would;
> href=file:///S:/Wiki/MasterDBV4.html#Auto
> also work given this is the result of a permalink ?

That would create a new instance - that is, open a new tab/window, or
reopen the document in the current window.


-- F.

Rashad Mahmood

unread,
Jul 30, 2008, 3:31:02 AM7/30/08
to TiddlyWiki
Thanks for your help. That mostly worked. It opens the tiddler above
the source tiddler. However, it doesn't scroll up to it, so it's hard
to see that it has opened.

I figured out that the following works as well:

href=javascript:;" onclick="onClickTiddlerLink(event);"
tiddlyLink="California"

Although this creates it below the source tiddler, but does auto-
scroll down to it. This seems to suit my needs fine, but if anyone
knew how to have the newly opened tiddler appear at the top, and
scroll to it automatically, that would be even better.

Thanks!

Rashad
Reply all
Reply to author
Forward
0 new messages