Hello Is it possible to use this technique as an alternative to the usual TW syntax (for example [img[caption|Senny.jpg]]) to reference the Senny image within html tags?
Thanks Steve W On Jan 26, 9:57 pm, jrbast <[email protected]> wrote: > It worked! Great thaks for your quick response. > > Jeff > > On Jan 26, 8:52 pm, Eric Shulman <[email protected]> wrote: > > > > <html><a href="javascript:void(0)"onclick="story.displayTiddlers(null, > > > ['Contacts'])"<imgsrc="contacts.png"/></a></html> > > > > Can someone help me code the abovehtml 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 pureHTML, the <imgsrc="..."/> 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...>HTMLsyntax 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 -~----------~----~----~----~------~----~------~--~---

