Seaching  a keyword in Text Area

Hi
Yesterday I had posted a topic about searching a keyword in a TextArea..and then I got an answer (search link is ---->javascript+text+highlighting)..to search a keyword using java script..the code was working throughout the web page..but it was not working inside the TextArea...So plz give some valuable inputs on this regarding..
Thanks in advance
Edited by: gif-sa-as on Feb 4, 2008 6:45 PM
Edited by: gif-sa-as on Feb 4, 2008 7:40 PM

This might be a question about the AWT TextArea component, but more likely it's a question about Javascript. This forum is about Java, not about Javascript which is a different language. There are Javascript forums on the Internet and you should look for one of them.

Similar Messages

  • Color coded text area

    How can I make a text area that when you type, if it is a reserved word it change it's color, like JCreator or some editor

    Swing related questions should be posted in the Swing forum.
    How can I make a text area that when you type, if it is a reserved word it change it's colorYou can't. You need to use a JTextPane (or JEditorPane)
    Search the Swing forum using "syntax highlighting" as the keywords to find other postings on this topic. You may even find my "SyntaxDocument" solution which will work for Java but not other programming languages.

  • Read Only Display of Radio group and Text area with counter not working

    Hello,
    I am using Apex 3.2, with 10g for the database
    I have this form, with fields that will set to read only when status = 'closed'
    All of the fields display as read only except for 2. I cannot figure out why this is not working correctly.
    1st field is Issues that is a text area with character counter, with a sql query behind it, that is set to null unless the query is pulling in the data.
    2nd field is Status which is a radio group that will not display as read only when status = 'closed'
    I have other fields on the form with the same format and they change to read only when the status = 'closed', I have even copied the pl/sql expression from one field to these fields and it still doesn't work correctly. I have also tried javascript for an on load event, which works, but once I click on the save button, it disables all of the page items, which works correctly, but I purposely forget to enter information, to make sure the validations are firing correctly, which it does, but the script disables everything, not allowing me to correct the errors. The javascript is firing on the on page load event.
    Any help on this is greatly appreciated.
    Mary

    Dung,
    That API seems to have a bug, it returns true/false/null, so you could use 'return not nvl(htmldb_util.current_user_in_group(p_group_name => 'APP Admin'),false)' to get a false value.
    Unfortunately there's another problem: using the read-only attributes for checkbox or radiogroup item makes them hidden. My suggestion would be to create another item that has disabled="disabled" in the HTML Form Element attribute in the item definition and display that item or the non-disabled item alternately, using conditions based on the current_user_in_group logic.
    Scott

  • Database Table where modifications to message long text are stored (log)

    Hi,
    As per manual correction mentioned in SAP note 1144291,
    we have changed the long text for message XC092 by modification of the long text.
    This note 1144291 is a pre-requisite for SAP Note 1310808.
    After the notes were implemented, it is noticed that message CURTO1055 has incorrect information in its long text. This is because, the variable in the long text are not correctly defined in the long text.
    Both the messages XC-092 and CURTO1-055 are SAP standard.
    The error for CURTO1-055 can be rectified by modification of the long text and maintenance of the correct variables.
    However, my question is:
    Where do we check the log for document modifcation for a message long text.
    I have found the logs relevant to my modification in table DOKHL and DOKIL.
    But in which table do we get all of the foll. data:
    - Message class
    - Message number
    - Modification name
    - Modification created by
    - Modification done on
    - Last changed by
    - Last changed on
    Kindly help. A <removed by moderator> solution would be really helpful.
    Best Regards,
    Smruthi
    Edited by: Thomas Zloch on May 5, 2011 12:07 PM - urgency reduced

    Hi Smruthi,
    The modification changes would be in the SMODILOG table. Please note this is a core basis table and should not be changed, however to best find your changes search under the TRKORR field with the relevant tp request.
    Best regards,
    Derrick Hurley
    Development Workench

  • Photoshop CC icons and text are too small: how to adjust so they're readable? [was: Joanne]

    I have just downloaded Creative Cloud on a new computer.  The new photoshop icons and text are too small for me to see or work with.  I cannot seem to adjust this so its "useable"

    Hey Bob,
    Ive put feature requests for this in before and I know many others have as well. Is there any way to see if Adobe is actually working on this? I dont really consider this a feature request, it should be standard with the software. A feature request would be something like creative cloud libraries, not the ability to make font sizes and icons bigger.

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • More than one text area on a slide master... how?

    Is it possible to define more than one text area on a master slide? If so how?
    I want to have a layout with two columns of text - a fairly common layout in presentation packs - but can't persuade Keynote to accept this as a layout for a template. I realise that there can only be one 'body' area, but any attempt to produce a 'fake' second body area fails - whether I put in a text box or a shape with text in.
    If I put it in as a text box, I can't put a limit on how big the box is.
    If I put it in as a shape with text in, when I try to enable the shape as a text placeholder, it forces the whole text in box to have same format as 'top level' outline.
    Any ideas?

    If you want two columns of text, why not set up the Body textbox with two columns? Select the Body textbox on the slide master, then in the Text Inspector, in the Columns tab, set however many columns you want.

  • Simple Right-click menu in Text Area

    How can I simply implement a right-click menu with
    the options copy-paste on a text area or editor pane?
    I believe there must be ready code for sth like that.

        protected void createPopupMenu ()
            mMenu = new JPopupMenu ();
            cutOption = mMenu.add(new JMenuItem("Cut"));
            cutOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do cut here
            copyOption = mMenu.add(new JMenuItem("Copy"));
            copyOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do copy here
            pasteOption = mMenu.add(new JMenuItem("Paste"));
            pasteOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do paste here
            });when you instantiate your textarea or editpane add this line:
            createPopupMenu (); //popup menu for right clickshould work perfectly

  • Need to show some values from Lookup in Text Area of Request Dataset

    Hi,
    I have a requirement where I need to display values(which are roles) coming from a lookup in text area. The reason behind is to show to end users list of roles. They should not be able to select these roles.They will just refer the list and enter desired role in a text field. I thought of using text area as the component to be used for showing these roles. However, I cannot use lookup property for widget="textarea" in the request dataset.
    Can we do this or is there any other component where I can show list of roles so that users can just refer the list.
    Thanks.

    Lookup Property ??
    TextArea is different type of widget. It doesn't come with lookup.
    Search developer's guide.
    – textarea: Specifies a large text field for entering multiple lines of text.
    Even if they select then don't use that field for further processing. You can use Attribute instead of AttributeReference.
    Workaround:
    Have one text are and use Prepopulate adapter to populate those values.

  • Cant delete all from a bound text area--why??

    Hi All,
    Here's my problem. I'm using jdev10.1.2, jsp's and adf bc's.
    i have several text areas on my jsp that correspond to clob attributes on a VO. If the user edits this page by removing the entire contents of one of these text areas and submits the form, when the browse page is reloaded (which is a copy of this page except it has the commit button on it and its not editable), the text that was just removed is defaulted back in. i have noticed that if i leave a space when i remove the contents, it works perfectly fine.
    i have tried defaulting spaces in on the entity and this does not work. Any ideas would be most welcome.
    Thanks in advance,
    Newbe

    Hi,
    hard to tell from what you describe. This could be a bug or an implementation error. I suggest to file a service request with support
    Frank

  • Issue with rightclicking in a text area which uses Squiggly

    Hi,
    I have found an issue with using squiggly in a TextArea component.
    I was able to simulate the same in the demo url . http://labs.adobe.com/technologies/squiggly/demo/#
    The issue is when I enter a random text like "aaaaaaaaaaaaaaaaaaaaaaaaaaaa" and then when I do a right click on the text area,
    I get an exception as shown below.
    TypeError: Error #1010: A term is undefined and has no  properties.
    at  com.adobe.linguistics.spelling.core::SuggestionManager/nsuggest()[C:\squiggly\esg\squiggl y\main\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\core\SuggestionManager.as:20 1]
    at  com.adobe.linguistics.spelling.core::SquigglyEngine/suggest()[C:\squiggly\esg\squiggly\ma in\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\core\SquigglyEngine.as:285]
    at  com.adobe.linguistics.spelling::SpellChecker/getSuggestions()[C:\squiggly\esg\squiggly\ma in\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\SpellChecker.as:145]
    at  com.adobe.linguistics.spelling.ui::HaloWordProcessor/getSuggestionsAtPoint()[C:\squiggly\ esg\squiggly\main\AdobeSpellingUI\src\com\adobe\linguistics\spelling\ui\HaloWordProcessor. as:49]
    at  com.adobe.linguistics.spelling.ui::SpellingContextMenu/handleContextMenuSelect()[C:\squig gly\esg\squiggly\main\AdobeSpellingUI\src\com\adobe\linguistics\spelling\ui\SpellingContex tMenu.as:124]
    So is there any fix for the above error or a workaround for this.
    This has been filed as bug in an application I am working on.
    regards,
    Anup Francis

    Thank you for reporting this issue.
    I was unable to reproduce this problem under the following configurations:
    Mac OSX 10.6.3, Flash 10.0.42.34, Firefox 3.6.3
    Windows XP, Flash 10.0.45.2, IE 8.0.6001
    Windows XP, Flash 10.1.53.21, Firefox 3.6.3
    Could you provide more details about the software configurations you have that reproduces this problem?
    Also, is there a specific location you click in the TextArea?  On the word?  On white space?
    Thanks,
    - Bruce, Adobe

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • Showing Multiple Row in text area

    My requirement is like ( in TextArea display only )
    head1 head2 head3 head4
    A b c d
    a' b' c' d'
    where
    head1..head --> header of the report
    a..d and a'..d' ---> rows of data need to be fetched from DB...
    i tried using various workarounds but nothing seems to work out...
    any help wud be apprciated
    -prashant

    Yes i intend to create report....but somehow i feel it is better to use EASY Report instead of showing records in text area ...thanks anyway

  • Texts are not showing up after upgrading to version 11

    Could someone help me with why some of my texts are not show up on my Flash project? Before the upgrade, everything is fine. However, after upgrading to version 11, my texts are disappearing.
    Before (version 10.3.183.7...)
    After (version 11.0.1.152...)
    The texts in the boxes will disappear, when I hover mouse cursor over it. Those boxes with texts in them are created with an external AS file, and the texts are dynamicaly changed/put in with an external XML file. There is a mask on the boxes, show only 4 at a time.
    Demo: www.ethanslin.com/portfolioWorks/flashWorks/demo/
    You will see the changes with Flash player version 11, and everything working fine with older versions.
    I use iMacs with Snow Leopard and Lion, and this happens on all of the browsers with Flash Player version 11.01.152. I also tested on Windows 7, and it is still happening. Is this a Flash Player bug or something changed that I am not aware of? Is there a work around for this?

    This is a known issue and we have a fix for this in our next release. Thanks for posting.

  • How to assign the output of a function to a text area: a PLSQL challenge

    I have a function that returns a PLSQL table of varchar4(4000)
    Here is its signature in a package:
    create or replace package researcher_request_pk
    is
    TYPE query_table_type is table of varchar2(4000) index by binary_integer;
    FUNCTION RequestSQL(P_RRQ_ID in number) return query_table_type;
    end;
    I use this to get around the 32k limit on clobs and varchar2 variables
    I want to assign the output of the function to a text area. I've tried the following PLSQL in a dynamic action and also as the source attribute of the Text Area but it doesn't populate the text area.
    Here is the code i'm using
    declare
    v_table researcher_request_pk.query_table_type;
    begin
    v_table:=researcher_request_pk.RequestSQL(:P64_RRQ_ID);
    for i in 1..v_table.count loop
    htp.prn(v_table(i));
    end loop;
    end;
    Any ideas on the correct syntax to do this?
    thanks in advance
    PaulP

    Thanks for your reply
    The function does populate the PLSQL table with data. e.g. If I place that exact code in a PLSQL region it generates the output on the screen with no problems. The problem is just generating the output into the text area.
    I want the text area to display the output of the PLSQL table (-a dynamic select SQL statement) which I then plan to execute to return records.( i.e. I've build my own runtime query builder)
    My plan is to allow the user to edit the SQL output first before sending the statement for execution.
    Funnily enough I do get the very first word of the first cell appearing, namely 'SELECT' but nothing else. Maybe the "||" that follows has something to do with the rest of it not appearing?? hmmm... will experiment more.
    thanks
    PaulP

Maybe you are looking for

  • Error while importing Item MAster Data using DTW

    Hi, when we are importing item master data using items template it is giving error. Error:":connected value 1 was not found " can any one send the oitems template that is working fine wthout any error. Thanks, Neetu

  • Audio Device connected by HDMI dont play sound in HP DV7

    I dont hear sounds if I connect my Amplifier by HDMI. In BeatsAudio amplifier is double the same is in Device Menager.  Before was only one Amplifier device now show double amplifier device and no sound. I try uninstall Amplifier and restart but dont

  • How to get IDoc Metadata and Structure without connection to sender

    Hello folks! Is there any chance to receive and process an IDoc with PI without having loaded the IDoc Metadata with a direct connection from the sending SAP System? Can't this be done by hand? Or is it not possible to bypass the IDoc Adapter and sen

  • Important in PT

    hi i am doing my OCP, i finished three papers, now i waiting to write the PT. Could any one tell me what are the important topics in PT. And how i anazlye my statspack report. bcoz i take my statspack report, but i dont know how to anazlye that. what

  • After Effects Direct Link clips render slowly in Premiere

    I have a few clips I sent to After Effects from PPro via Direct Link and have noticed Premiere chugs along at a super sluggish pace when it gets to rendering or exporting those clips. Some clips take at least 5 times longer to render or export from P