Search text & highlight it in textarea htmltext

Hello All,
how to search perticular word in textarea htmltext? and how to highlight those all found word in textarea htmltext?
i have tried many way but not perfectly implemented.
any idea please....

Tejas S Patel wrote:
yes i have seen this.
But its possible for static textarea contains.
I am fatching data from database and display in textarea and then search & highlight them.
I am confused for using this example.
it is perfectly possible to link that example up to dynamic data instead, it just requires of bit of reading into it and understanding their code, and then a sit down and think for a few minutes of using the functions already created for you.
i'm somewhat skeptical about spoon feeding an answer when 95% of the work has already been done and found for you, there's nothing to learn that way.
personally i'd suggest going away and have a play with it for a while and try to get it working, if you still can't figure it out come back with what you've tried and i'd be more then happy to help you with it then

Similar Messages

  • Search and highlight the text

    Hi All,
    It would be great if someone advice or help for developing customized application for PDF document. I want make following feature in my application using .Net technology.
    1. How to search the particular listed text and need Highlight that words in PDF document
    2. And is it feasible to search that highlighted word alone using search custom option
    3. once reached the word I want to change the background color in that word
    Many thanks,
    Gnanasekaran

    Thank you and I have few queries:
    I have Adobe Acrobat, after developed certain autoamation with VB.Net; I need to install that EXE in another system; it is require again Adobe Acrobat full version or Reader alone. Please confirm.

  • Highlighting searched text

    Hi,
    I have a little parameterised report, with a search region and and reports region below.
    So the user would lets say enter in a surname and press the Go button. Then in the report all of the records returned containing the search text are say coloured Red.
    Let's say I search on the the string 'Ander' and press Go, in the results in the report I would see and the surname begining wiht 'Ander' and that text highlighted or in a different colour. Just to show the user what they have searched on.
    I really hope I have made some sense.
    Many thanks in advance.
    Niels

    Hi Niels,
    To alter the way the returned text looks to the user, you would have to alter the text.
    You could try
    replace(string_searched, string_searched_for, '<font class="my_highlight_class">'||string_searched_for||'</font>')Regards
    Michael
    Edited by: MKii on Jul 14, 2009 1:00 PM

  • Highlighting  all  the occurrences of the search text

    Hello All,
    can anybody tell me how to highlight the search text in HTML in JSP.
    I have this String...
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV
    and I want to highlight, just QAISTTF GAN, GMLLLITALG, LAAV and change the font color of the search text.
    Any help would be appreciated.

    If I do like that, search string is displayed, but it is below the main string.
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV
    QAISTTF GAN, GMLLLITALG, LAAV ...... I don't want like this.
    I want the main string and in that, what ever I want to search has to be highlighted.
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

  • Flex TextArea HTMLText issue.

    Hi All,
             I am using a Flex textArea control and recently i found an interesting behaviour while using htmlText property of the TextArea.
    By default the htmlText has "<P align=''left' /> tag.When i added bullets to the text it adds the "<LI>" tag to the text and get rid of the the "<P/>" tag.
    The problem is that,when i add bullets and the right align the text,it displays fine on the textArea ,but since the htmlText does not have the "<P/>" tag,when i send the htmlText to the backend to generate the .jpg preview of the screen,it is not aligning the text to right.
    Bottom line:"when text right aligned with bullets,htmlText does not have "<P/>" tag and only have "<LI/>" tag.
    Does anyone know about this issue?
    Any ideas to overcome this issue?
    Thanks
    Kartik B

    Thanks for reply,
    i am taking htmlText from another textarea..
    code:
    var htmltext:String = txtarea.htmlText
    var textarea1:TextArea = new TextArea();
    textarea1.htmlText = htmltext;
    vboxName.addChildAt(textarea1,0);
    while tracing value of htmltext
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
    LETTERSPACING="0" KERNING="0">agenda descriptyion</FONT></P></TEXTFORMAT>
    <TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
    LETTERSPACING="0" KERNING="0">neethu<FONT FACE="none" COLOR="#FFFFFF"></FONT></FONT></LI></TEXTFORMAT>
    Regards,
    Manu Lal

  • Text highlighting in a JEditorPane

    Hi everyone.
    I was wondering if you could help me with a slight problem im experiencing. I have a JEditorPane which displays HTML . I've added a search tool to my app that search for text in the JEditorPane and when it finds the search string it highlights the text
    dealingsHTML.select( nPosition, nPosition + toFind.length() );This works ok, but ONLY if i first click in the JEditorPane, then perform the search. If i dont click in the JEditorPane first then it won't highlight the text. Any ideas how I could get around this problem? Obviously it's beneficial to have the text highlighting.
    BBB

    Thanks for the tip-off camickr, what they suggested didnt work for me (dont know why) but from that I searched a few other threads and found the solution, so thanks.
    i found using the select(int,int) method to not be supported by highlighting when the object didnt have focus. So i used a combination of setcaretposition and movecaretposition and the setselectionvisible(boolean) method which works as desired: -
    dealingsHTML.setCaretPosition( nPos );
    dealingsHTML.moveCaretPosition( nPos + toFind.length() );
    dealingsHTML.getCaret().setSelectionVisible(true);

  • TextArea.htmlText ### newline pb

    Hi
    Im using a TextArea to display HTML text.
    <mx:TextArea width="100%" height="100%"
    htmlText="{data.text}" />
    it contains :
    <![CDATA[
    something here
    <li> one </li>
    <li> two </li>
    ]]>
    it seams to insert 2 new line between each <li> or \n
    in the text !
    Can you help me ?

    I don't think it's a case of TextArea.htmlText not working so much as it's a case of there not being an htmlText property for the TextArea in AS2.  AS3 versions support it, but I believe in AS2 you need to specify the html property to be true and assign the text to the text property.
    ta.html = true;
    ta.text = "<b>your html text</b> here";

  • Text Highlighter

    Seriously, can nobody figure out how to make IND highlight text ie word-style? I have 700 different body text figure references, 70 different authors with varying ages and eyesight and bold/italic just doesn't cut it. How hard can this be?

    InDesign CS5:
    No I mean when I'm typing plain old body text in a text frame, I want to Highlight several words of text the same as if you had used a highlight pen on a hardcopy. I understand I can use a style and turn the text bold, italic, red, etc. - I want the background behind the text colored (without creating a text box, cell or some other "object". And I responded here because when I did a search on the forum for "text highlighting" it told me I should use this forum. My apologies if this is the wrong place.
    Pariah Burke, in his book, "Mastering InDesign CS5," says that to make figure references stand out - you can apply a highlight effect behind the reference (ie, Figure 8-213, to aid you in finding the right locations to place figures in lengthly text documents. I can't figure out how to do that. As much as I hate Word, it has a one-click text highlight button that makes text look as though it were marked with a highlighter.
    thanks, gofigyer

  • How do i use the text highlighter on web pages

    I want to highlight some small print on a banking web page to email. The print is too small and will be missed if not highlighted. I have installed the text highlight add on in my tool bar but don't know how to use it.

    Hi Trease,
    Check to make sure that is it is not disabled in the about:addons page of your browser window.
    There are a few addons with that name, but I would also take a look at the description on its addons.mozilla.org page if you still have it.

  • How to get selected text values in a textarea by mouse click?

    Hi Everyone,
    What I am trying to do is to click on some texts in a textarea, then get the selected text value.
    If you guys have used an accounting software called Simply Accounting, you might understand better.
    I list all my customer names in a textarea. What I want is, when I click on one customer, another GUI pops up with this customer's information. My problem is that I don't know how to get the selected text value from a textarea.
    Could anyone give a hand here? Thank you in advance.

    Is there some reason you aren't using a JList or
    JTable to display
    the user names/information?Thank you for es5f2000's reply. You just gave me a better idea! There is not a particular reason I have to use TextArea to list my customers. As long as the component can make my idea alive, I definitely use it. Still, if there is any way to get a selected text value, it will help me a lot with my project. Thank you.

  • In a Google search, clicking on a search result causes the new page to open with the search terms highlighted in yellow -- how can I turn off th

    In a Google search within a Firefox session, clicking on a search result causes the new page to open with the search terms highlighted in yellow -- how can I turn off this highlighting?

    Try to clear the Google cookies and redo those Google options.
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • How can I copy or print all text highlights in Adobe Reader for Android?

    I read many tech books as pdfs. And highlight the parts I want to note.
    Since I am now reading them on an Android Tablet using Adobe Reader for Android, I need to find a way to move my highlights to a separate doc when I am done reading. I don't see instructions for this anywhere.
    How can I copy all text highlights at once from a document?
    And / or
    How can I print all text highlights from a document?
    Thanks,
    ken

    Thanks.
    Kindle Reader will let me do that with Kindle books and docs that I buy from
    Amazon, but not with personal docs (such as pdfs) that I import, unfortunately.
    Is a VERY useful feature!

  • Search text in sql server 2000

    how can i preapre a script to search all stored procedure, view, etc. which contain search text. just list out all the sp name, view name.

    select distinct
    object_name([id]) as obj_name,
    case
    when objectproperty([id], 'IsProcedure') = 1 then 'stored procedure'
    when objectproperty([id], 'IsScalarFunction') = 1 then 'scalar function'
    when objectproperty([id], 'IsTableFunction') = 1 then 'table function'
    when objectproperty([id], 'IsView') = 1 then 'view'
    end as obj_type
    from
    syscomments
    where
    objectproperty([id], 'IsProcedure') = 1
    or objectproperty([id], 'IsScalarFunction') = 1
    or objectproperty([id], 'IsTableFunction') = 1
    or objectproperty([id], 'IsView') = 1
    and objectproperty([id], 'IsMSShipped') = 0
    and [text] like '%orderid%'
    order by
    obj_type, obj_name
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to select and search text in this document?

    http://www.oracle.com/technology/products/manageability/database/pdf/ow05/PS_S003_274003_1 06-1_FIN_v2.pdf
    is a document I can read but cannot copy text from. I can't search for any text in it either. Is there a way to convert it to a PDF file I can select and search text in? What did the author do to make it "encrypted"? Thanks.
    Yong Huang

    I notice Google can convert it to plain text:
    http://74.125.95.132/search?q=cache:e4rkLs8pPekJ:www.oracle.com/technology/products/manage ability/database/pdf/ow05/PS_S003_274003_106-1_FIN_v2.pdf+understanding+shared+pool&cd=1&h l=en&ct=clnk&gl=us
    (If that long URL doesn't work, just search for "understanding shared pool" and click "View as HTML".)
    For now I'll use that. Thanks everyone.
    Also, my local desktop search program Copernic can also index keywords in the article.

Maybe you are looking for

  • How to resize image in PSE 7?

    I've imported large file image sizes to PSE7 (3.7MB) and need to resize entire photo to smaller resolution for email and posting on web. Can someone assist me in doing so in PSE7? thanks

  • Can I resrtore previous sessions if they are not saved?

    I accidentally closed a session and the tabs were very important to me. Unfortunately, I wasn't asked whether I want to save before close. Can I find this session somehow?

  • WMA and itunes

    I'm trying to add some old downloaded music to my itunes. It's in WMA format and said it needed to convert it. Then it said it was protected WMA. Any advice?

  • Toplink Deployment issues

    Hello, I am trying to come up with a way to do deployment of the entity objects independent of any application server-be it Weblogic or Websphere or OAS. Of course not sure if it is possible but I would like to ask the community for their thoughts on

  • Getting the last date's value

    Hello, I need to be able to show the last date's value for all dates where a fact measure exists. For example, let's say I have the following fact table: Date                  Category  Value 01/01/2000       A              1 01/02/2000       A