How to fix the text search feature to help?

Hello

I face problems in seeking a text

(1) when I seek convert .it 'N' all the small "n" in the capital "N".

(2) If add a special character in the text field it add text... example '&'.it append with & amp...

http://jsfiddle.NET/ravi1989/wjLmx/24/

function searchAndHighlight(searchTerm, selector) {
    if (searchTerm) {
        //var wholeWordOnly = new RegExp("\\g"+searchTerm+"\\g","ig"); //matches whole word only
        //var anyCharacter = new RegExp("\\g["+searchTerm+"]\\g","ig"); //matches any word with any of search chars characters
        var selector = selector || "#realTimeContents"; //use body as selector if none provided
        var searchTermRegEx = new RegExp(searchTerm, "ig");
        var matches = $(selector).text().match(searchTermRegEx);
        if (matches != null && matches.length > 0) {
            $('.highlighted').removeClass('highlighted'); //Remove old search highlights  

            //Remove the previous matches
            $span = $('#realTimeContents span');
            $span.replaceWith($span.html());

            $(selector).html($(selector).html().replace(searchTermRegEx, "" + searchTerm + ""));
            $('.match:first').addClass('highlighted');

            var i = 0;

            $('.next_h').off('click').on('click', function () {
                i++;

                if (i >= $('.match').length) i = 0;

                $('.match').removeClass('highlighted');
                $('.match').eq(i).addClass('highlighted');
                $('.ui-mobile-viewport').animate({
                    scrollTop: $('.match').eq(i).offset().top
                }, 300);
            });
            $('.previous_h').off('click').on('click', function () {

                i--;

                if (i < 0) i = $('.match').length - 1;

                $('.match').removeClass('highlighted');
                $('.match').eq(i).addClass('highlighted');
                $('.ui-mobile-viewport').animate({
                    scrollTop: $('.match').eq(i).offset().top
                }, 300);
            });

            if ($('.highlighted:first').length) { //if match found, scroll to where the first one appears
                $(window).scrollTop($('.highlighted:first').position().top);
            }
            return true;
        }
    }
    return false;
}

$(document).on('click', '.searchButtonClickText_h', function (event) {

    $(".highlighted").removeClass("highlighted").removeClass("match");
    if (!searchAndHighlight($('.textSearchvalue_h').val())) {
        alert("No results found");
    }

});

I did this my own problem...

Tags: BlackBerry Developers

Similar Questions

  • G530 - how to fix the Novo key features?

    Hello guys!

    Some time ago I completely changed partitions configuration on my laptop, because I wanted to have two systems - Windows 7 (the default) and Ubuntu. Previously, I had an image of the LENOVO_PART (partition Lenovo recovery) by Paragon and burned on DVDs. Its contain images (a recovery key 7) OKR - mbr, boot partition and system (with default settings) file that contains information about the partition sizes and sectors. I deleted all the partitions and create new partitions.

    Now I want to restore the original scores, so I restored the partition recovery DVDs, and I put his ID 12 (PTEDIT32) and rebuilt the other partitions on the accuracy of a sector.

    Now, I have the following partitions: 1 - start (default is unnamed), 2 - system (default is unnamed), 3 - Lenovo, 4 - LENOVO_PART. Unfortunately the Lenovo System Restore does not start once I pressed the Novo key, so I put the active recovery partition and I can't restore the original mbr, boot, and system. Everything would be fine, but the Novo key doesn't work, then press start the normal system of Windows 7, not the recovery system.

    Could someone tell me how could fix the Novo key without the Lenovo service features?

    BTW, sorry for my bad English

    It should work properly. It seems that there is something wrong with the a key.

    at this point, I suggest you call lenovo support line and ship your laptop.

  • How to fix the text of tracking in PES 11?

    My tracking text is suddenly off in PES 11 on iMac.  There is too much space between the letters.  I downloaded Yosemite, but not sure it is the cause.  How can I solve this problem?

    Normally we'd reset the text tool or the preferences of PES 11, but given that you went to Yosemite, you should do the things suggested here and hopefully that should solve any problems your having with PES 11.

    http://barbarabrundage.com/2014/10/17/a-reminder-for-Mac-folks-upgrading-to-Yosemite/

  • How to fix the text so it is not jumping when you type?

    I have Windows 7 on my Dell laptop.  When I type "anywhere" the characters jump all over the page, I type in.  How can I fix it?

    Hello Michele,

    A fairly common problem for laptops - its caused by the thumb, finger or palm (s) hit the Touchpad when you type. The infallible remedy only is an external mouse with Touchpad disabled. To do this, or just disable the Touchpad, go to control panel, select mouse properties and select the Touchpad tab in the top row of tabs.

    This will open an applet that allows you to select the order of Touchpad buttons, a check box parameter to disable the Touchpad when an external mouse is detected.  If you want faster access to this setting, make sure to display the icon in the system tray is also checked, and you will be able to access this setting in the notification area (bottom right of the task bar, click the arrow to access the Touchpad icon).

    To avoid problems to repeat in the future, make sure that if you go to Device Manager to "RID" the Touchpad you only disable the Touchpad as opposed to uninstall the Touchpad. If you uninstall the Touchpad, the next time you restart your computer, the applet will appear again back in place. You can only disable the Touchpad to get rid of him.

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • How to fix the text ticker scrolling of nervousness?

    Hi everyone, need help to correct text ticker scrolling of nervousness. Here is my code

    var ticker_text:TextField=new TextField();
    ticker_text.selectable = false;//not selectable
    ticker_text.border = false;//no border
    ticker_text.autoSize = TextFieldAutoSize.LEFT;//field scales with more text
    ticker_text.gridFitType = GridFitType.SUBPIXEL;
    ticker_text.sharpness = 400;
    ticker_text.antiAliasType = AntiAliasType.ADVANCED;
    ticker_text.cacheAsBitmap = true;
    
    var my_tickertape:Sprite = new Sprite();
    //my_tickertape.cacheAsBitmap = true;
    my_tickertape.x = 700;
    my_tickertape.y = 595.25;
    addChild(my_tickertape);
    my_tickertape.addChild(ticker_text);
    
    //RELOAD XML BASED ON ENTER FRAME///;
    stage.addEventListener(Event.ENTER_FRAME,reloadBusXML);
    function reloadBusXML(e:Event)
    {
    
        //LOAD HEADLINES TICKER TAPE
        tickertapexmlloader.load(tickertapexmlreq);
        tickertapeXML = new XML(tickertapexmlloader.data);
        tickertextLoaded();
    
    }
    
    function tickertextLoaded():void
    {
    
        //busDetail = dataXML.busDetail;
        var myNewsheadlines:XMLList = tickertapeXML.headline;
    
        var i:Number;
        var text_to_scroll:String = "";
        var myText:String = null;
        for (i=0; i < myNewsheadlines.length(); i++)
        {
            myText = myNewsheadlines[i].text();
            //TEXT TO SCROLL
            text_to_scroll +=  myText;
    
            //BULLET DIVIDER
            if (i + 1 < myNewsheadlines.length())
            {
                ///IF REACH THE LAST HEADLINE, DON'T ADD " • "///
                text_to_scroll = text_to_scroll + " • ";
            }
            //ticker_text.htmlText += myText + " • "
        }
    
        /////////////////NEWSHEADLINES TICKER TEXT////////////////////////
        ticker_text.htmlText = text_to_scroll;
    
        var ticker_text_format:TextFormat = new TextFormat();//set the formater
        ticker_text_format.color = 0x96CFDC;//set the color to the hex
        ticker_text_format.size = 24;//set the font size 
        ticker_text_format.font = "Frutiger55Roman";//set the font type
        ticker_text_format.rightMargin = 15;
        ticker_text_format.display;
    
        //APPLY TEXT FORMATING
        ticker_text.setTextFormat(ticker_text_format);
    
    }
    
    
    //ADD THE LISTENER TO SCROLL
    my_tickertape.addEventListener(Event.ENTER_FRAME,move_text);
    
    //MOVE_TEXT SCROLLING FUNCTION;
    function move_text(myevent:Event):void
    {
        var scrolling_speed:Number = 1;
    
        my_tickertape.x -=  scrolling_speed;
        if (my_tickertape.x < (0 - my_tickertape.width))
        {
            my_tickertape.x = stage.stageWidth - 150;
        }
    }
    

    Thank you

    Another thing to try is to use the timer in conjunction with TimeEvent.updateAfterEvent (), but in my case it's worse Flash does not maintain framerate at all by its design so animations as it will never be perfect. If you increase the CPU and GPU, ability he can do it, but in the past I had to stop using a TTY to a large public facility because even with a top of the range Flash graphic card does not keep constant framerate.

    --

    Kenneth Kawamoto

    http://ww.materiaprima.co.UK/

  • How to use the find/search feature in a book?

    Hello

    New to indesign... working on a directory file that contains 25 chapters.

    I have definitive evidence to ensure that all double spaces are gone, all the quotes are right etc.

    Instead of opening of each chapter and by using ' Search/search' through each chapter, I can tell the "Search/search" function through the whole book?

    Appreciate any feedback

    Thanks heaps

    There is no special installation "book Search" in InDesign. You must open all the files that you want to search and then use the option "all the research papers" in the search engine. That and other gaps in the book led me to consolidate all the chapters of my book in a single file.

  • How to fix the Front facing camera? Help!

    So a few days ago, I went on my photo app (which has the most recent updated), and all of a sudden, I have received a msg saying "camera error". I don't know what I did because my rear camera works perfectly well. Its when I turn the camera to deal with myself, no image is displayed. I tried:
    Data erasing & wiping cache, delete the apps that used the device (for example, Snapchat), I put my phone into safe mode, I did a factory reset, I tried force closing, uninstallation of updates to update, reinstall the application, obtain a third-party app part... and I do not have any application that deals with a flashlight.
    All the people mentioned were not working. What should I do?

    Several times, this is the sign of a hardware issue - module loose connection, camera, etc. Especially since you have tried everything else.

    Is your device warranty? If so, I contact your carrier or Motorola and see about maintenance or replacement.

  • How can I incorporate the text search when a project public captivate in HTML5?

    How can I incorporate the text search when a project public captivate in HTML5?

    There is an option in the skin editor > TOC settings, but I think you will find this only applies to research on the names found in the table of contents itself, not the entire project.

  • How to fix the missing lines of text and formatting lost, hyphenated words and text disturbed flow, after the conversion of PDF in word doc to allow editing? using WPS office application on Android Galaxy tablet. tried Polaris app and got a blank document

    How to fix the missing text and updated lines shaped, hyphenated words and patterns disrupted, lost after export PDF document to word doc to allow editing? using WPS office application on Android Galaxy tablet. tried Polaris app and got a blank document.

    Thank you!

    Hi Spider,

    Adobe Acrobat on mobile devices can be used for editing. I will suggest you to perform the task on PC or Mac.

    Thank you

    Abhishek

  • How to fix the corruption in the logic model?

    Hello

    I have a logic model created in SDDM 3.1.2.704.  I have designed a relational model successfully in the past, but recently when I tried the logic engineer-> relational nothing happens.  I get the following entry in the log file:

    [AWT-EventQueue-0] ERROR MDBAction - java.lang.NullPointerException

    Looking at some other threads, I used the script of processing described here

    3.1.3.709: how to check and fix a design may be corrupted?

    This does not solve my problem, but the output file (generated when I press the engineer to the relational model button) shows the following exception:

    java.lang.NullPointerException

    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.decodeDataTypeKindToString (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.processDataTypeAndUse (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.initPropertiesList (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator.initPropertiesList (unknown Source)

    to oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator. < init >(Unknown Source)

    to oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator. < init >(Unknown Source)

    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addAttribute (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addEntityDetails (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.setEditableStatus (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addEntity (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addFromLogicalModel (unknown Source)

    to oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational. < init >(Unknown Source)

    to oracle.dbtools.crest.swingui.engineeringcompare.EngineeringCompareDialog. < init >(Unknown Source)

    to oracle.dbtools.crest.swingui.logical.ControllerLogical$ FWDEngineer.doActionPerformed (unknown Source)

    to oracle.dbtools.crest.swingui.MDBAction$ ActionInvoker.run (unknown Source)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    I tried SDDM 3.3.0.747, same result.

    I tried to delete entities in the model, 1 at a time, but the problems continues (even when the model will be reduced to any entity at all!)

    I tried exporting the model and import it into an empty design.  Import fails 'Impossible to generate design' and produced the following exception in the datamodeler.log file:

    [Thread-19] ERROR ODExtractionController - error generating Design: Untitled_1

    java.lang.NullPointerException

    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.decodeDataTypeKindToString (unknown Source)

    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.processDataTypeAndUse (unknown Source)

    at oracle.dbtools.crest.model.design.compare.COPropertiesComparator.initPropertiesList (unknown Source)

    at oracle.dbtools.crest.model.design.compare.cwddesign.AttributeComparator.initPropertiesList (unknown Source)

    to oracle.dbtools.crest.model.design.compare.cwddesign.AttributeComparator. < init >(Unknown Source)

    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addAttribute (unknown Source)

    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addEntityDetails (unknown Source)

    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addEntity (unknown Source)

    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.initSourceDesign (unknown Source)

    to oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns. < init >(Unknown Source)

    to oracle.dbtools.crest.swingui.compare.cwddesign.CompareCWDDesignsDialog. < init >(Unknown Source)

    to oracle.dbtools.crest.imports.cwddesigner.CWDExtractionController$ Runner2.run (unknown Source)

    at java.lang.Thread.run(Thread.java:662)

    Any help much appreciated.  With more than 100 entities and 200 relationships I really want to have to recreate it.

    Thanks in advance.

    Hello

    but the problem continues (even when the model is reduced to no entity at all!)

    The error that you stated (in engineering and import) is not reached, if there is none of the entities and attributes - this is a specific error, probably in connection with the use of separate types that are removed from the design.

    You can use the search feature to find attributes/columns (logical/relational model) with incorrect data type definition based on the separate type.

    And it is better to move it to Data Modeler 4.0 (833).

    What to look for (example on the logic model - it is the same for the relational model - column):

    (1) to activate the search engine (CTRL-F when logical diagram is active, or the Find icon), switch to advanced mode

    (2) for the attribute "object Type":

    -check the 'Kind of Data Type' line and put DT as search text

    -check the 'Distinct type' line, do not put the text search - it will search attributes without separate type

    -change the operand of OR AND expression

    3) press the ' search ' button.

    If you find some attributes, then you will need to decide what to do with them - to define the data type or delete.

    Ditto for the columns in the relational model.

    Philippe

  • Please tell me exactly how to remove the AVG search function

    Please tell me exactly how to remove the AVG search function

    edited by a moderator for clarity

    You need not repeat dozens of times or use profanity to get help.

    (1) disable all non-essential or unrecognized extensions on this tab. Don't know what it does? When in doubt, turn off:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Use the links above a disabled extension to restart Firefox if some seem to.

    (2) restore your Google search engine:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    (3) check a user.js file (before the release of Firefox, otherwise the parameters in this file can cancel your cleaning) as described in this article: How to fix preferences that will not save.

    (4) If AVG search took over your page to the new tab (Ctrl + t), which changes as follows:

    (A) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (B) in the filter box, type or paste newtab and make a pause so that the list is filtered

    (C) double-click the preference browser.newtab.url and enter the desired value for your favorite page:

    thumbnails (i) (default) Page = > subject: newtab

    (ii) blank tab = > subject: empty

    Firefox homepage integrated (iii) = > topic: welcome

    (iv) any other page = > full URL of the page

    IMPORTANT: If you have AVG software in your Windows Control Panel, you need to remove it.

  • How to make the text bigger in youtube! Cubs in youtube!

    I made the largest text where google search arrives! But when I go on youtube the text is much tinier and I 65 to cataract and I can't read the text at right! How to make the text bigger in youtube? Thank you very much! I tried everything, but nothing changes the size!

    When you view this page hit {Ctrl + 0} < is a zero number -to reset the zoom level for this area.

    https://support.Mozilla.com/en-us/KB/page+zoom

    If you move the scroll wheel, and are now the CTRL key, you can change the zoom level of the page that is viewed - both in & out.

  • How to fix the position of the cmd window?

    I would like to know how to fix the position of the cmd window on the upper right corner instead of middle of anywhere in the window.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    Hello!

    Open "Command Prompt", right-click the title bar and choose "Properties".

    Go to the Layout tab.

    In terms of the "Position of the window", uncheck "Let system position window.

    Change the Left and Top values to your preference - on my system (left = 290, Top = 0) are ok.

    On the same tab, look at the picture under "Overview of the window" to try different values - the window position changes after entering a value in the left text box and pressing the tab key.

    I hope that helps!

  • fonts of PDF in Acrobat Reader MS are coarse, while the same document loaded into Acrobat Pro on the same computer has smooth fonts. How to fix the appearance of fonts in MS Reader? Running Windows 7.

    fonts of PDF in Acrobat Reader MS are coarse, while the same document loaded into Acrobat Pro on the same computer has smooth fonts. How to fix the appearance of fonts to Rader DC? Running Windows 7.

    Hi sidneys22641895,

    Please try to check the rendering under Edit menu options > Preferences > Page Display.

    Check if in smooth text field "for computer/laptop LCD screens" is selected.

    Let us know if that helps.

    Kind regards

    Meenakshi

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

Maybe you are looking for

  • What should I do with my Apple Watch when I can't wear this year?

    I want my Apple Watch series 2 to follow all my workouts, but when I do martial arts, I can't wear it on my wrist (or ankle). Any suggestions on how to fix this?

  • Satellite X 200-CD/DVD disappeared - error code 19

    Hi all, new here. After the recent activity of the serious virus on my laptop (X 200) I had to reinstall vista. Therefore, downloading 150000 updates, which took almost a week lol. Somewhere along the line here my drive CD/DVD stopped working. When I

  • registration of dynamic events - FP not in memory?

    Hello I have the problem that I do not understand the event registration Dynamics trhw. In my application, I have multiple threads that are initialized when the application starts and I switch between them using secondary. In one of this module, I wa

  • Not possible to install InstallShield error 1628

    I recently had to reinstall Windows XP, because then I could not reinstall one of my programs, ACT! 2005 after 90 + % at the end of installation, I get the error message 1628 and can go no further.  I need to get this reinstalled program because it h

  • Alphabetical order music

    Is it possible for me to Alphabitize music in my music folder? Is there a command that I can use for this? Thank you James