pasteHTML的问题 [英] Problems with pasteHTML
问题描述
我正在运行这行代码:
oTarget.pasteHTML(formattedHtmlText);
其中oTarget是文本范围对象。
当格式化的HTMLText是,例如,<< STRONG>< BUTTON
class = placeHolder> [[ContAmt]]< / BUTTON> ;&安培; NBSP;文字< / STRONG>" HTML是正确粘贴的,并且相应地更改了UI。
但是,如果formattedHtmlText是< BUTTON
类=占位符> [ContAmt〕25 / BUTTON>&安培; NBSP;文本" HTML不是
粘贴,用户界面没有变化。
文本被粘贴到< div>标签。
有什么想法?谢谢!
I''m running this line of code:
oTarget.pasteHTML(formattedHtmlText);
where oTarget is a text range object.
When formattedHtmlText is, say, "<STRONG><BUTTON
class=placeHolder>[[ContAmt]]</BUTTON> text</STRONG>" the HTML is
pasted properly and the UI is changed accordingly.
However, if formattedHtmlText is "<BUTTON
class=placeHolder>[[ContAmt]]</BUTTON> text" the HTML is not
pasted and there is no change in the UI.
The text is being pasted into a <div> tag.
Any thoughts? Thanks!
推荐答案
你不能粘贴''班级''
a班更高的解释依旧。
------------------------
也是''你''& nbsp; [非破坏空间]
表示你甚至没有关于标记的线索
。
----------------------
你住在哪里? JAMAICA
======================
让我们打电话给你的问题牙买加摇摆
" colinhumber" <共********* @ gmail.com>在消息中写道
news:11 ********************* @ z14g2000cwz.googlegro ups.com ...
you can not paste a ''class''
a class hangs on higher interpretation.
------------------------
also'' your'' [non breaking space]
is indication,that you have not even a clue
about markup.
----------------------
where do you live? JAMAICA
======================
Let''s call your question the jamaica sway
"colinhumber" <co*********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
我正在运行这行代码:
oTarget.pasteHTML(formattedHtmlText);
其中oTarget是文本范围对象。
当formattedHtmlText是,例如,"< STRONG>< BUTTON
class = placeHolder> [[ContAmt]]< / BUTTON>& nbsp; text< / STRONG>"正确粘贴HTML并相应地更改UI。
但是,如果formattedHtmlText是< BUTTON
class = placeHolder> [[ContAmt]]< / BUTTON>&安培; NBSP;文本" HTML没有粘贴,UI也没有变化。
文本被粘贴到< div>标签。
任何想法?谢谢!
I''m running this line of code:
oTarget.pasteHTML(formattedHtmlText);
where oTarget is a text range object.
When formattedHtmlText is, say, "<STRONG><BUTTON
class=placeHolder>[[ContAmt]]</BUTTON> text</STRONG>" the HTML is
pasted properly and the UI is changed accordingly.
However, if formattedHtmlText is "<BUTTON
class=placeHolder>[[ContAmt]]</BUTTON> text" the HTML is not
pasted and there is no change in the UI.
The text is being pasted into a <div> tag.
Any thoughts? Thanks!
commercial在9/20/2005凌晨3:57发表以下内容:
commercial said the following on 9/20/2005 3:57 AM:
你可以不粘贴''班级''
------------------- -----
也是''你''& nbsp; [非破坏空间]
表示你甚至没有关于标记的线索。
你的回复表明你的智商小于你的脚尺寸。
--------------- -------
你住在哪里? JAMAICA
这与任何事情有什么关系?除了你缺乏
智力?
======================
让我们把你的问题称为牙买加摇摆
you can not paste a ''class''
a class hangs on higher interpretation.
------------------------
also'' your'' [non breaking space]
is indication,that you have not even a clue
about markup.
And your reply is indication that your IQ is smaller than your foot size.
----------------------
where do you live? JAMAICA
What does that have to do with anything? Other than your lack of
intelligence?
======================
Let''s call your question the jamaica sway
让我们回答你的答案愚蠢。
< - 剪辑 - >
-
兰迪
comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组每周
答:它会破坏对话的顺序
问题:为什么?
答案:热门发布。
问题:Usenet上最烦人的事情是什么?
Lets call your answer "stupid".
<--snip-->
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
嗯,有几件事情。首先,你在谈论什么课?
formatHtmlText是一个字符串。二,& nbsp;由IE HTML引擎自动放入
,而不是我。
Well, a couple things. First off, what class are you talking about? The
formatHtmlText is a string. Second, the was put in there
automatically by the IE HTML engine, not me.
这篇关于pasteHTML的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!