
Anonymous
Hi ,
As i specified in my opiginal post, the text which i get in and im trying to truncate – this could be just a piece of HTML, sometihng like <p sdfsdf>fgdfgdfg</p>sdgfsdg<afghfghgf></A>
so lets say my str="<p sdfsdf>fgdfgdfg</p>sdgfsdg<afghfghgf></A>"
in this case alerts in javascript before and after work, but qListView record is empy. Not well formed – meaning that i was trying to break an HTML code in the midle of the <P> or <A> anchor.
if my str="dfgdfgdfgdfgdf dfgdfgdfg" without any <A> or <P> – then record in qListView is populated with the value which DisplayChars returns.with the first scenario ( evven though alerts in javascript function return value) – qListVew record dosnt have anything.
(this is an actual example of the str:
<P>The staff of the U.S. Securities and Exchange Commission (the "SEC") has announced its new National Exam Program ("NEP") initiative to conduct "Presence Exams" of newly-registered investment advisers. In a letter sent today from various regional offices of the SEC to newly-registered advisers, the staff described the new exams as "focused" and "risk-based" and highlighted the following five "higher-risk" areas that may be covered during an exam:</P> <UL> <LI>Marketing <LI>Portfolio Management <LI>Conflicts of Interest <LI>Safety of Client Assets <LI>Valuation</LI></UL> <P>)