html graphics problem

Dave Cragg dcragg at lacscentre.co.uk
Wed Dec 12 19:32:01 EST 2001


At 2:38 pm -0800 11/12/01, Kevin Wilson wrote:

>everything works fine. If I try -
>
>put "<img src=" & quote & "11430" & quote & ">  " into variable1
>put "</p>" into variable2
>put variable1 & line 1 of fld "Master" and variable2 into fld "Dimension"
>
>("11430" being the id of the image that I am using), the ability to
>highlight lines in the text field becomes completely arbitrary, some
>lines working and others not.

This seems to be either a bug or a limitation of embedded graphics.

You can set the the imageSource of a single character in a field to 
the id of an image. So if you have the following in a field:

x  Smoked Eel

and do the following:

    set the imageSource of char 1 of field 1 to 11430

it works fine. In this case the "x" is still present in the field 
text, it's just not displayed. (You can look in the "contents" filed 
in the property dialog to see that it's still there.) But the 
htmlText for the field returns:

<p><img src="11430">  Smoked Eel</p>

The first character is missing from the htmlText. So setting the 
field to this htmlText doesn't produce what we started with. I guess 
this accounts for the weirdness of selecting in list fields.

The only way round this I think is to use a "dummy" character in the 
html and set the imageSource of that char after setting the htmlText. 
Something like"

set the htmlText of field 1 to "<p>x Smoked Eel</p>
set the imageSource of char 1 of field 1 to 11430

Not so elegant. :(

Cheers
Dave Cragg








More information about the metacard mailing list