I'm having issues with htmltext also. I'm using the <sub> tag to do the equivalent of setting the textshift of a character and the <img> tag to do the equivalent of setting the imagesource, eg
<sub shift="2"><img src="1234" char=" "></sub> I can clearly see this in the variable I use to set the htmltext, yet when I get the htmltext of the field, the <sub> clauses are sometimes there, sometimes not. Even if they are there, they don't have any effect. I'd really like to get this working if I can since using htmltext appears much faster than setting the imagesource and textshift on individual lines in the field when there are a large number of lines to be processed. This is with LC 5.5.0, OSX 10.7. Pete lcSQL Software <http://www.lcsql.com> On Tue, Sep 18, 2012 at 7:37 AM, Klaus on-rev <kl...@major.on-rev.com>wrote: > Hi friends, > > I have a strange htmltext problem with LC 5.52 while working on a rating > thing (5 stars etc..) with a LOCKED field :-) > > I have this script: > on mouseUp > put "12345" into fld 1 > repeat with i = 1 to 5 > set the imagesource of char i of fld 1 to 1005 > end repeat > end mouseUp > > Works fine, 5 white stars appear, and when I check the htmltext of fld 1 I > get: > RETURNS added for readability > <p> > <img src="1005" char="1"> > <img src="1005" char="2"> > <img src="1005" char="3"> > <img src="1005" char="4"> > <img src="1005" char="5"> > </p> > > Fine so far, but when I set the htmltext of that field to the (Livecode > approved?) string above, only ONE star appears > and the htmltext reports: > <p> > <img src="1005" char="12345"> > </p> > > WTF? > What am I missing? > > Any hints very appreciated! > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major.on-rev.com > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode