colinhumber wrote:
I'm running this line of code:
oTarget.pasteHT ML(formattedHtm lText);
where oTarget is a text range object.
However, if formattedHtmlTe xt is "<BUTTON
class=placeHold er>[[ContAmt]]</BUTTON> te xt" the HTML is not
pasted and there is no change in the UI.
The documentation here
<http://msdn.microsoft. com/library/default.asp?url =/workshop/author/dhtml/reference/methods/pastehtml.asp>
says: "This method might alter the HTML text to make it fit the given
text range. For example, pasting a table cell into a text range that
does not contain a table might cause the method to insert a table
element. For predictable results, paste only well-formed HTML text that
fits within the given text range."
So the results depend on where you try to paste some HTML snippet and on
what IE regards as "well-formed HTML text fitting" into a given range.
Perhaps it helps to wrap the above into <span></span> but as you have
not even said us where you try to paste the above HTML it is not
possible to test whether that helps.
--
Martin Honnen
http://JavaScript.FAQTs.com/