Hi Viktoras,

Mark told you about using the imageSource property.
As for me I don't like too much to use it: even if it works, it sounds like a workaround:
You display an image but it is referenced by a char.
When building lists, for instance, you have to plan fake chars then set their imageSource, etc.
This does not sound good to me ;-)

I prefer the way building correct html at first :-)
Just as you thought of.

Here is an example of a function that builds a list of usernames with a specific icon in front of each username according to the fact that its account is password protected or not (to give you the idea):

function BuildUsersHtmlList pArray
  local tHtml,tID
  -----
   repeat with i = 1 to pArray["length"]
    if pArray["Data",i,"uPassword"] = empty then put 60079 into tID
    else put 60080 into tID
put "<p><img src=" & quote & tID & quote & ">" && pArray ["Data",i,"uName"] & "</p>" & cr after tHtml
  end repeat
  delete last char of tHtml
  return tHtml
end BuildUsersHtmlList

tID is a variable that contains the ID of an image: this image can be in the current stack or in any open stack (visible or not). Note how the html is built using quotes and concatenating text and variables values.

On the other hand, my "Encoded Text Picker" plugin might help you:
It's an HTML and URLencode translator:

Ability to translate both to and from HTML and/or URLEncode.
Integrated search and replace features (including tab and return.)
Ability to determine text style and color, include images. Copy function.
Playing with it should make html easier ;-)

You will find it by going to http://www.sosmartsoftware.com/.

Hope this helps.

Le 22 janv. 07 à 17:38, Viktoras Didziulis a écrit :

how do we display an image imported into the stack's or substack's image library within a field using htmltext img src="" ? Is this possible ? I tried various combinations without any success, and it is likely that the only way to display an image in htmltext of the field is to have it as a
file on a hard drive... Or am I wrong ?

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ ----------------------
http://www.sosmartsoftware.com/    [EMAIL PROTECTED]/


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to