Hi sini-Kit,

On Tuesday, February 10, 2015 at 2:39:34 PM UTC-6, sini-Kit wrote:
>
> if I write im1.....im3...im4 getAttribute will not work :(
>
> if I paste  <$image source=" images/products/products_big/418.jpg " />  as 
> HTMl  (or textnode) it looks like simple text (not an image)
>
> I think I don`t know something and go in the wrong way..... 
>
>
> you can use data urls to show internal images 

var tiddler = this.wiki.getTiddler(tiddlertitle);
img.src="data:" + tiddler.fields.type + ";base64,"+ tiddler.fields.text;


> вторник, 10 февраля 2015 г., 22:46:13 UTC+3 пользователь Jeremy Ruston 
> написал:
>
>> Hi sini-Kit
>>
>> > it works for 1-5 images. to make it work for any number of images it is 
>> necessary to know the number of attributes "im" how can I count them? 
>> and it work only with external images....
>>
>> One way would be to repeatedly call getAttribute("im" + count) in a loop 
>> until you get back undefined.
>>
>> To work with internal images you'd need to have your widget generate 
>> <$image> widgets instead of HTML <img> elements.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>> 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to