Hi sini-Kit > if I write im1.....im3...im4 getAttribute will not work :(
Can you show the code you've tried? > if I paste <$image source=" images/products/products_big/418.jpg " /> as HTMl (or textnode) it looks like simple text (not an image) If you're generating widgets (as opposed to plain HTML) then you can't use innerHTML to generate your widget output. See the "execute" method of the <$edit> widget for an example of how to generate a parse tree that includes widget calls: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/edit.js#L42 Best wishes Jeremy. On Tue, Feb 10, 2015 at 8:39 PM, sini-Kit <[email protected]> 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..... > > > > вторник, 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. >> >> >> >> -- Jeremy Ruston mailto:[email protected] -- 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.

