Hi! Eric, your solution did the trick, thanks. Mario, I tried yours as well, but I got nothing.
w On Mar 28, 11:12 pm, Eric Shulman <[email protected]> wrote: > > for (i in somearray) { > > It works in plain HTML file, but in TW, I get the following result: > ... > > function (field, value) { for (var t = 0; t < this.length; t++) { if > ... > > > For some reason it pulls some code from the core. TW version is 2.6.2. > > I tested on a vanilla TW, but the result was the same. > > TWCore adds several enhanced functions to the Array prototype. As a > result, the syntax: > for (i in somearray) > finds ALL the properties of the array, including instances of those > extended functions. > > To skip those functions in your output, you can use typeof(...) to > check the type of the property: > for (i in somearray) { > if (typeof(somearray[i])!='function') > document.write(...); > } > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > ---------- > Was this answer useful? If so, please help support TiddlyTools: > > TiddlyTools direct contributions: (paypal) > http://www.TiddlyTools.com/#Donate > UnaMesa tax-deductible contributions: > http://about.unamesa.org/Participate(paypal) > TiddlyWiki consulting: > http://www.TiddlyTools.com/#ELSDesignStudios > http://www.TiddlyTools.com/#Contact -- 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.

