> <html><a href="javascript:void(0)"onclick="story.displayTiddlers(null,
> ['Contacts'])"<img src="contacts.png"/></a></html>
>
> Can someone help me code the above html  to reference the internal
> attached file contacts.png I have loaded into my tiddler file using
> AttachFilePlugin?

Attached images are stored in tiddlers using base64-encoded data.

When the TW [img[...]] wiki syntax is processed, the tiddler data is
retrieved via a plugin-defined javascript function and then assembled
into a data:// URL that is then passed along to the brower to actually
render the image.

However, when using pure HTML, the <img src="..."/> syntax does not
provide a means to invoke a javascript function from within the
src="..." attribute.  As a result, there is no way to construct and
retrieve the necessary data:// URL from the attachment tiddler.

Fortunately, there is another solution...
   http://www.TiddlyTools.com/#HTMLFormattingPlugin
permits you to use TW wiki syntax within an <html>...</html> block
which will allow you to use the [img[...]] wiki syntax in place of the
<img ...> HTML syntax to embed the image, like this:

<html><a href="javascript:void(0)"onclick="story.displayTiddlers(null,
['Contacts'])">[img[contacts.png]]</a></html>

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