have you tried using the unescape function?.....something like this:
test_txt.replaceSel(unescape("<img src=\"mountains.jpg\" width=\"350\"
height=\"120\" />"));
On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
Oh, and to follow up with some further information:
It seems to only encode those HTML entities when I use
TextField.replaceSel(). If I just add the <img> tag string on to the
htmltext field value, it works:
//works:
test_txt.htmlText += "<img src=\"mountains.jpg\" width=\"350\"
height=\"120\" />";
//fails - shows literal text, and encodes entities:
test_txt.replaceSel("<img src=\"mountains.jpg\" width=\"350\"
height=\"120\" />");
Am I left with splitting the string in two, inserting the <img> tag, and
re-assembling the string? Or is there a way to get replaceSel() to work
with HTML tags?
Thanks,
Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com