Gallery with search text

Hi,
To start off with - I'm a complete noob to this. I apologies for any over-simplistic questions I may ask in advanced.
I've got a picture Gallery with Names, which was been imported from excel. I want to be able to filter the gallery based on text which put into the custom search bar.
I've managed to get the filter working, but when there is no text in the custom search bar, nothing appears in the gallery. Also the search only works if I put in a full name - rather then just part of a name.
So the gallery needs to be filtered based on what text is inserted to the search bar, but if the bar is empty then the whole gallery appears.
Thank you very much advanced! :)
Best Regards,
RT

I would use in If statement:
I'm assuming the following, so please modify the names in the statement as needed.
Gallery: Gallery1
Desired Source for Gallery: Table1
Search Column in Table1: Names
Text box to enter search criteria: InputText1
Gallery Items: If(InputText1!Text = "",Table1,Filter(Table1, Lower(InputText1!Text) in Lower(Names)))
I used Lower() because In is case sensitive.
-Bruton

Similar Messages

  • Gallery with HTML text under image

    I'm working on a gallery of images with thumbnails on the left and larger photos on the right. My problem is the larger photos on the right need some text under them. I've been adding the text to the photos in photoshop and doing this as a standard swap image/swap image restore. What I was wondering, is there a way to add this text as HTML. When I do the swap image I would need to swap out the HTML text also. I've done this as a layered div in the past, but it gets cumbersome when you have 30 thumbnails. Hopefully someone has a good solution for this. I'm thinking about giving up on Dreamweaver and doing this sort of thing in Flash.
    ----Here's the website I'm working on -- http://www.elyssabassdesigns.com/fashion_collection/fashion_cuffs.html

    There are literally hundreds of CSS, DHTML or jQuery solutions you could use.
    http://www.1stwebdesigner.com/resources/57-free-image-gallery-slideshow-and-lightbox-solut ions/
    http://www.dynamicdrive.com/dynamicindex14/index.html
    www.JAlbum.net
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Problem with searching text after first paragraph

    Has anyone had problems finding text in a clob (with the contains() function) that is beyond the first paragraph?
    Is there some simple setting I've missed, or am I doing something wrong?

    You are doing something wrong.

  • ABAP LIST WITH SEARCH TEXT

    Hello all,
    1. i am entering material no.
    2. Material Desc.  as search item like     "b*k". both in parameters.
    i success to find text Combination what i have given in parameter and displayed in list.
    but i want, latter which i got in list be selected in Highlighted mode.
    is it possible, if yes please give idea.
    Rajesh

    Hi,
    use:  format - command
    or write ... color 3.
    A.

  • Searching for Flash Photo Gallery with numbered navigation menu.

    I'm looking for a photo gallery with a numbered navigation
    menu. I've seen this gallery on several flash web pages. Is this
    type of photo gallery a template that comes with flash? Has anyone
    come across a tutorial for a photo gallery similar to the link
    below.
    http://www.rockcreeksm.com/index.php/work/portfolio/

    i made this one:
    http://www.goldbergphotography.com/
    but there are quite a few simpler photogalleries. use google
    to search for some tutorials or templates.

  • Problem with full-text search in RH8

    Hi All,
    I've just upgraded from RH6 to RH8 (laptop running Windows XP SP3; RH6 still present on the computer but the RH8 setup program did not seem to have a problem with that: identified an earlier version was present, asked for its serial number, and then proceeded).
    RH8 is working just fine, except for one thing: in the WebHelp output I generate, the Search tab displays: "Error: Failed to initialize database".
    As a matter of fact, the generation details in RH8 output view state:
    Processing Full-text-search data...
    Finished processing Full-Text-Search data in 0 sec(s)
    This is the case for legacy projects that RH8 upgraded from RH6, but also when I create a project from scratch in RH8.
    Now, to add to my confusion, before buying RH8, I had downloaded RH8 trial version and installed it on a spare computer (so it would not interfere with my RH6 installation and projects). The tests with this version were OK (hence the decision to buy the upgrade), and guess what: there was no problem whatsoever with full-text search, neither on legacy projects nor on new projects.
    So before I go into the pains of uninstalling / reinstalling (hello registry, it's me again, trying to clean things up ;-), I'd like to know if anyone has any idea why this is happening.
    Just to be clear: The RH8 version I bought and installed was a new download, distinct from the initial trial download.
    The 3 differences between the trial version and the current working version are:
    Trial was on a Vista computer (working version is on XP SP3)
    Trial did not have RH6 present on the computer
    Trial was version 8.0.0.203, whereas the working version is 8.0.2.208 (immediately after it was installed, RH prompted me to install the updates)
    Thanks in advance for any help or advice.

    Hi All,
    Just for the record, IT people here were eventually able to have RH8 full-text search feature working on my laptop by:
    1/ Installing an XP virtual machine from scratch, and then installing RH8 on it (we created a small project and generated the webhelp output, just to make sure the search feature did work in that environment).
    2/ Using a software virtualization application to capture that RH8 install and deploy it on my laptop.
    The problem is not solved, because we still don't know what caused it (conflicting DLLs?), but it looks like we have a workaround - although certainly not a quick and easy one ;-)

  • Searching with large text

    Greetings,
    We are evaluating Oracle 10g specifically for its Oracle Text functionality and are having a difficult time trying to figure out how to use large text for searching.
    Specifically, we have a table containing large, full-text descriptions that we wish to find using smaller abstracts. Our full-text may be anywhere from ten thousand to a hundred thousand characters in length. Our abstracts tend to be much smaller; in the five hundred character range.
    We wish to use these smaller, five hundred character abstracts to locate documents that may be related based solely upon common keywords. We will eventually get into concept matching, but for now we simply wish to find document matches based upon keywords. This query is quite similar to ORing every term in the abstract and performing a CONTAINS query, but should hopefully be less clunky.
    SQL Server allows us to do this quite simply by performing a freetext search. We plug our abstract into the search algorithm and receive a listing of documents that it deemed to be similar.
    Does Oracle Text provide a similar functionality and, if so, can someone point me in the right direction?
    Many thanks,
    Kirk

    We are currently using a tool mandated by our client to cluster documents and perform concept (theme) based searching. This tool does not, however, perform keyword searching. We are looking to supplement its results with keyword search results from, say, Oracle Text or SQL Server (or Google or any of 100 other keyword search capable tools on the market).
    We already have a working prototype that uses SQL Server. Using fulltext keyword matching, it accepts an abstract and returns to us all of the documents that mostly closely match. We would like to also perform this test in Oracle Text, however, we are unable to figure out how to make Oracle accept a large text for searching without significant reformatting.
    For example, say my text is "Four score and seven years ago". In SQL Server, I am able to pass this in, as is, and it will return to me the Gettysburg Address as its highest ranking match.
    With Oracle Text, I was able to produce similar results, but I had to reformat the query string to "$Four$|score$|and$|seven$|years$|ago". I am looking for a way to pass in "Four score and seven years ago" without having to perform any gyrations on the text.
    Thanks,
    Kirk

  • Kazehakase with full-text search in history using Hyper Estraier

    A guide for Kazehakase with full-text history search using Hyper Estraier
    I adopted qdbm and submitted hyperestraier in AUR, so you can enable full-text search frature by installing Hyper Estraier from AUR and rebuilding Kazehakase using srcpac or yaourt.
    1. Install QDBM and Hyper Estraier from AUR. The easiest way is using yaourt. (If you prefer not to use yaourt, download tarball and do makepkg && pacman -U manually.)
    yaourt -S qdbm hyperestraier
    2. Rebuild Kazehakase using srcpac.
    srcpac -Sb kazehakase
    Of cource you can rebuild Kazehakase using yaourt.
    yaourt -Sb kazehakase
    You don't have to modify configure option in PKGBUILD of Kazehakase, because "--enable-hyper-estraier" is implied by default. If Hyper Estraier is installed successfully, you'll get "Hyper Estraier: yes" in configure messages.
    3. Configure Kazehakase. To enable full-text search in history, run Kazehakase and go Edit>Preference>General and change UI Level to "Expert" and apply settings. Next, go Edit>Preference>History and set Search engine name to "hyper-estraier" and restart Kazehakase. Then you'll see "History Search" box next to "Internet Search" box.
    Sorry for my poor English.

    "ctxsrv" is no longer supported at version 10.1.
    Instead PARAMETERS clause has SYNC option, and you can specify ON COMMIT for this.
    If you created the database with DBCA and chose Oracle Text option, then you have no need to perform any further operations to configure Oracle Text.

  • Help needed with oracle text special character search

    Hi all
    Using oracle 11g sql developer 4.0
    I am facing this challenge where Oracle text when it comes to searching text that contains special character.
    This what I have done so far with help of http://www.orafaq.com/forum/t/162229/
      CREATE TABLE "SOS"."COMPANY"
       ( "COMPANY_ID" NUMBER(10,0) NOT NULL ENABLE,
      "COMPANY_NAME" VARCHAR2(50 BYTE),
      "ADDRESS1" VARCHAR2(50 BYTE),
      "ADDRESS2" VARCHAR2(10 BYTE),
      "CITY" VARCHAR2(40 BYTE),
      "STATE" VARCHAR2(20 BYTE),
      "ZIP" NUMBER(5,0)
       ) SEGMENT CREATION IMMEDIATE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" ;
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (1,'LSG SOLUTIONS LLC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (2,'LOVE''S TRAVEL',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (3,'DEVON ENERGY',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (4,'SONIC INC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (5,'MSCI',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (6,'ERNEST AND YOUNG',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (7,'JOHN DEER',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (8,'Properties@Oklahoma, LLC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (9,'D.D.T  L.L.C.',null,null,null,null,null);
       BEGIN
    CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
         CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '.,@-'''); -- to skip . , @ - ' symbols
        END;
      CREATE INDEX my_index2 ON COMPANY(COMPANY_NAME)
         INDEXTYPE IS CTXSYS.CONTEXT PARALLEL
       PARAMETERS ('LEXER your_lexer');   
    SELECT
    company_name
    FROM company
    WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
    ORDER BY company.COMPANY_ID;
    output
    company_name
    1 LSG SOLUTIONS LLC
    2 Properties@Oklahoma, LLC
    only return 2 row but should return 3

    I just noticed that I forgot to use an empty stoplist, so I have added that to the revised example below.  Otherwise, it uses a default stoplist that would not index common single-letter words like A and I.
    1. Whtat is Just search on single character 'L'? It give me error.
    Since it uses the NEAR operator, searching for just one letter causes incomplete syntax, asking it to search for L near a missing second value.  So, I have added additional code to allow for just one letter.
    2. How do I do auto refresh on this index on datastore?
    If I add "sync        (on commit)" it does not refresh the previously set token.
    Sync(on commit) does synchronize so that the data is immediately searchable.  You have to either optimize or rebuild or drop and recreate the index to condense the rows in the domain index table.
    3.lastly explanation of
    <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
                      <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
                    <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    why 100 true and 100 false
    100 is just a default value that I used for the second parameter of near, indicating how close the letters need to be to each other.  True and False are values for the third parameter of near, indicating whether or not the letters must be in the same order or not.  So, it returns the results in the order of first those that are very close to one another and in the same order, then those that may be further away but in the same order, then those that may be further away and in any order.
    SCOTT@orcl12c> CREATE TABLE company_near
      2    (company_id    NUMBER(10,0) NOT NULL ENABLE,
      3      company_name  VARCHAR2(50 BYTE))
      4  /
    Table created.
    SCOTT@orcl12c> SET DEFINE OFF
    SCOTT@orcl12c> BEGIN
      2  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (1,'LSG SOLUTIONS LLC');
      3  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (2,'LOVE''S TRAVEL');
      4  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (3,'DEVON ENERGY');
      5  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (4,'SONIC INC');
      6  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (5,'MSCI');
      7  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (6,'ERNEST AND YOUNG');
      8  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (7,'JOHN DEER');
      9  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (8,'Properties@Oklahoma, LLC');
    10  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (9,'D.D.T  L.L.C.');
    11  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (10,'LSG COMPANY, LLC');
    12  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (11,'LSG STAFFING, LLC');
    13  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (12,'L & S GROUP LLC');
    14  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (13,'L S & G, INC.');
    15  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (14,'L.S.G. PROPERTIES, L.L.C.');
    16  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (15,'LSGS PROPERTIES, LLC');
    17  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (16,'LSQ INVESTORS, L.L.C');
    18  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (17,'LHP SHERMAN/GRAYSON, LLC');
    19  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (18,'Walmart');
    20  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (19,'Wal mart');
    21  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (20,'LSG Property Investments, L.L.C.');
    22  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (21,'1224 S GALVESTON AVE, LLC');
    23  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (22,'1527 S GARY AVE, LLC');
    24  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (23,'FIFTEENTH STREET GRILL');
    25  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (24,'Massa Lobortis LLP');
    26  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (25,'Risus A Inc.');
    27  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (26,'Dollar $ store');
    28  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (27,'L.O.V.E., INC. ');
    29  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (28,'J-MART LLC ');
    30  END;
    31  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE OR REPLACE FUNCTION letters_func
      2    (p_string IN VARCHAR2)
      3    RETURN        VARCHAR2
      4  AS
      5    v_string     VARCHAR2(4000);
      6  BEGIN
      7    FOR i IN 1 .. LENGTH (p_string)
      8    LOOP
      9       IF REGEXP_LIKE (SUBSTR (p_string, i, 1), '[A-Z]', 'i')
    10       THEN
    11         v_string := v_string || SUBSTR (p_string, i, 1) || ',';
    12       END IF;
    13    END LOOP;
    14    v_string := RTRIM (v_string, ',');
    15    RETURN v_string;
    16  END letters_func;
    17  /
    Function created.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('letters_datastore', 'MULTI_COLUMN_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE
      4       ('letters_datastore',
      5        'COLUMNS',
      6        'letters_func (company_name) company_name');
      7    CTX_DDL.SET_ATTRIBUTE ('letters_datastore', 'DELIMITER', 'NEWLINE');
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX letters_index ON company_near (company_name)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE  letters_datastore
      5       STOPLIST   CTXSYS.EMPTY_STOPLIST
      6       SYNC        (ON COMMIT)')
      7  /
    Index created.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            24
    1 row selected.
    SCOTT@orcl12c> VARIABLE search_string VARCHAR2(100)
    SCOTT@orcl12c> EXEC :search_string := 'LSG'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
      2  FROM   company_near
      3  WHERE  CONTAINS
      4            (company_name,
      5             '<query>
      6            <textquery>
      7              <progression>
      8                <seq>'       || :search_string            || '</seq>
      9                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
    10                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
    11                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    12              </progression>
    13            </textquery>
    14             </query>',
    15             1) > 0
    16  ORDER  BY SCORE(1) DESC
    17  /
      SCORE(1) COMPANY_ID COMPANY_NAME
            56          1 LSG SOLUTIONS LLC
            56         10 LSG COMPANY, LLC
            56         11 LSG STAFFING, LLC
            56         12 L & S GROUP LLC
            56         13 L S & G, INC.
            56         14 L.S.G. PROPERTIES, L.L.C.
            56         20 LSG Property Investments, L.L.C.
            56         15 LSGS PROPERTIES, LLC
            31         17 LHP SHERMAN/GRAYSON, LLC
             8         21 1224 S GALVESTON AVE, LLC
             4         22 1527 S GARY AVE, LLC
             4         23 FIFTEENTH STREET GRILL
    12 rows selected.
    SCOTT@orcl12c> EXEC :search_string := 'L'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> /
      SCORE(1) COMPANY_ID COMPANY_NAME
            78          1 LSG SOLUTIONS LLC
            77          8 Properties@Oklahoma, LLC
            77          9 D.D.T  L.L.C.
            77         10 LSG COMPANY, LLC
            77         11 LSG STAFFING, LLC
            77         12 L & S GROUP LLC
            77         28 J-MART LLC
            77          2 LOVE'S TRAVEL
            77         26 Dollar $ store
            77         24 Massa Lobortis LLP
            77         23 FIFTEENTH STREET GRILL
            77         14 L.S.G. PROPERTIES, L.L.C.
            77         15 LSGS PROPERTIES, LLC
            77         16 LSQ INVESTORS, L.L.C
            77         17 LHP SHERMAN/GRAYSON, LLC
            77         20 LSG Property Investments, L.L.C.
            77         21 1224 S GALVESTON AVE, LLC
            77         22 1527 S GARY AVE, LLC
            76         19 Wal mart
            76         18 Walmart
            76         27 L.O.V.E., INC.
            76         13 L S & G, INC.
    22 rows selected.
    SCOTT@orcl12c> INSERT INTO company_near (company_id, company_name) VALUES (30, 'Laris Gordman llc.'  )
      2  /
    1 row created.
    SCOTT@orcl12c> COMMIT
      2  /
    Commit complete.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            35
    1 row selected.
    SCOTT@orcl12c> EXEC :search_string := 'Laris Gordman llc.'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
      2  FROM   company_near
      3  WHERE  CONTAINS
      4            (company_name,
      5             '<query>
      6            <textquery>
      7              <progression>
      8                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
      9                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
    10                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    11              </progression>
    12            </textquery>
    13             </query>',
    14             1) > 0
    15  ORDER  BY SCORE(1) DESC
    16  /
      SCORE(1) COMPANY_ID COMPANY_NAME
           100         30 Laris Gordman llc.
    1 row selected.
    SCOTT@orcl12c> EXEC CTX_DDL.OPTIMIZE_INDEX ('letters_index', 'FULL')
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            24
    1 row selected.

  • Search text on RTF with lingo

    dear all ...
    can help me?..
    I make glossary with RTF text because on RTF Text is easy to change content but can help me to make search text or word on RTF text with lingo..?
    Thankyou

    Changing the BG colour of a chunk of text is not easy. It can be done with some imaging-lingo hoop-jumping, or by having a pool of shape sprites that can be dynamically allocated, sized and positioned.
    Place the following in a JavaScript typed #movie script:
    function jsSearch (aString, aMatch) {
      var aPattern = new RegExp(aMatch, "gi");
      var found;
      var results = list();
      while((found = aPattern.exec(aString)) != null) {
        results.append(found.index);
      return results;
    and this in a "regular" Lingo #movie script:
    on mHighlightMatches aMember, aString
      -- error check inputs
      if ilk(aMember, #member) = 0 then
        aMember = member(aMember)
        if ilk(aMember, #member) = 0 then
          exit
        end if
      end if
      if stringP(aString) = 0 then aString = string(aString)
      if stringP(aString) = 0 then exit
      -- will only work with #text nmembers
      if (aMember.type <> #text) then exit
      aMember.color = rgb(0, 0, 0)
      len = length(aString)
      lMatchPositions = jsSearch(aMember.text, aString)
      if count(lMatchPositions) = 0 then
        alert "Search text not found"
      else
        repeat with aStart in lMatchPositions
          aMember.char[aStart..(aStart + len)].color = rgb(255, 255, 0)
        end repeat
      end if
    end
    and now your button script might look like:
    on mouseUp me
      mHightlightMatches(member("text2"), member("text1").text)
    end

  • Search text programatically with axAcroPDF control

    Hello,
    i want to use the axAcroPDF control to display PDF files inside my windows forms application. That's easy just put the control there and call LoadFile method. The control has methods to change page, hide toolbar etc... but not to search text. I want to search text, if possible matching exact phrase or not. I need to do that programatically, do you know how can i do that?

    Post only once.

  • Can't send photos with a text message

    Every time I try to send a photo from my Camera Roll with a text message it thinks about it for an interminable time then drops leaving an exclamation mark next to the message. It used to be ok but stopped about a week ago. Any ideas anyone?

    You're not alone! I have been searching for resolving this problem but I still have the problem.
    Things you might want to check is that MMS is "on". Get to this by settings- messaging.
    Check that "cellular data" is on.
    try to power the iPhone off for a few minutes, then turn back on.
    The only thing I have not tried is to reset the network. What I have read is that it wil not affect contacts, media, music. Tap settings- general, then scroll to the botton and tap reset, then tap reset network settings.
    I alo wanted to mention that I have no problem sending a photo in an sms/mms message to other ios devices. The photo and text goes through. It's just with other reciepients that have a different device.
    I also have Verizon as the carrier and I tried the *228 to program. My phone is also supplied by an enterprise, my work, and reading this Apple troubleshooting, the APN (access network), could have something to do with it on the settings or configuration of the server. 
    Message was edited by: jerryfromfirestone

  • Error in creating XML photo gallery with Flash CS4 and AS 3.0

    Hello, all. I've been creating an XML photo gallery with Flash CS4 and AS 3.0 following a tutorial. I followed the instructions step-by-step but at the end I got the following error message instead:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    Could anyone in the community assist me as to how to solve the problem? The script has no errors and last time I checked all the applicable files (the .xml file, the .jpg files, the .swf and the .fla file) are in my Documents folder on the Mac.
    Looking forward to your suggestions!

    Check the folder structure
    Flash is not able to get some file thats why the IO Error.
    trace the url path just before u load the file and u will be abel to find whether that file is in specified folder or not.
    http://www.darshanrane.com

  • How to search text in the table?

    Suppose, I've selected some fragment in my document, and I need to find and replace some text in it. Everything is ok, untill I select a part of a table with this text. Does anyone has idea, how to search through the selected cells in the table? Or, just how to iterate them?
    Thanks!

    var doc = app.ActiveDoc;
    var tbl = doc.SelectedTbl;
    // Navigate to the first selected row.
    var row = tbl.FirstRowInTbl;
    while (row.ObjectValid() === 1) {
        if (row.id === tbl.TopRowSelection.id) {
            break;
        row = row.NextRowInTbl;
    // Process the selected rows.
    while (row.ObjectValid() ===1) {
        cell = row.FirstCellInRow;
        while (cell.ObjectValid() === 1) {
            if ((cell.CellColNum >= tbl.LeftColNum) && (cell.CellColNum <= tbl.RightColNum)) {
                // Do something here...
            cell = cell.NextCellInRow;
        if (row.id === tbl.BottomRowSelection.id) {
            break;
        row = row.NextRowInTbl;
    This should do what you want.
    Rick

  • Find caret position of search text in jEditorPane

    Hi All,
    I am looking for a way to find the Caret position in a jeditor pane for the search text that i supply. The Jeditor pain is setup for text/html and when i find the index of my search text "ANCHOR_d" in the jeditor pane is 27000 something but the caret position is 7495 how do you find the caret position of the search text ??
    Any help is appriciated.
    I am also looking into getting abnchoring to work in the jeditorpane html text but as of yet i have been unsuccessful.
    Kind Regards,
    Wurns

    Search the underlying document, not the editor pane. Play around with this example, which I threw together the other day for a somewhat similar problem with JTextPane involving newlines, and modified for your need.
    Note: Please do not program by exception.import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import javax.swing.JButton;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.text.Document;
    public class SearchEditorPane {
       JFrame frame = new JFrame ("Search JTextPane Test");
       String html = "<HTML><BODY><P>This is <B>some</B>" +
                    " <I>formatted</I>" +
                    " <FONT color=#ff0000>colored</FONT>" +
                    " html.</P>" +
                    "<P>This is a <FONT face=Comic Sans MS>" +
                    "comic <br>\n<br>\nsans ms</FONT> section</P><div>" +
                    "And this is a new division</div>" +
                    "</BODY></HTML>";
       JEditorPane editorPane = new JEditorPane ("text/html", html);
       JPanel panel = new JPanel ();
       JTextField textField = new JTextField (10);
       JButton button = new JButton ("Find");
       Document doc = editorPane.getDocument ();
       void makeUI () {
          editorPane.setText ("<HTML><BODY><P>This is <B>some</B>" +
                " <I>formatted</I>" +
                " <FONT color=#ff0000>colored</FONT>" +
                " html.</P>" +
                "<P>This is a <FONT face=Comic Sans MS>" +
                "comic <br>\n<br>\nsans ms</FONT> section</P><div>" +
                "And this is a new division</div>" +
                "</BODY></HTML>");
          button.addActionListener (new ActionListener () {
             public void actionPerformed (ActionEvent e) {
                // Programming by exception is BAD, don't copy this style
                // This is just to illustrate the solution to the problem at hand
                // (Sorry, uncle-alice, haven't reworked it yet)
                try {
                   Matcher matcher = Pattern.compile (textField.getText ())
                   .matcher (doc.getText (0, doc.getLength ()));
                   matcher.find ();
                   editorPane.setCaretPosition (matcher.start ());
                   editorPane.moveCaretPosition (matcher.end ());
                   editorPane.requestFocus ();
                } catch (Exception ex) {
                   JOptionPane.showMessageDialog (frame, "Not Found!\n" + ex.toString ());
                   //ex.printStackTrace();
          panel.add (textField);
          panel.add (button);
          panel.setPreferredSize (new Dimension (300, 40));
          frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
          frame.setSize (300, 300);
          frame.add (editorPane, BorderLayout.CENTER);
          frame.add (panel, BorderLayout.SOUTH);
          frame.setLocationRelativeTo (null);
          frame.setVisible (true);
       public static void main (String[] args) {
          SwingUtilities.invokeLater (new Runnable () {
             public void run () {
                new SearchEditorPane ().makeUI ();
    }db

Maybe you are looking for

  • "Disk cannot be read from or written to" when syncing iPod

    HELP!!! I've an I-Pod 20Gb (just over 1 yr old) that has developed the above message in I-Tunes whenever I try to sync it now. Usually between starting and up to 1GB of files. I have done the 5 R's. I've managed to find my way into the diagnostics me

  • Transfer iTunes gift credit

    I received some iTunes credit through an online event I entered. However I do not have credit card information in my iTunes account and I don't use iTunes store that often, so I want to send that credit to my friend. The problem is both the sender an

  • Is adobe photoshop cs5 version 12.0x64 compatible on snow leopard?

    i had a macbook pro 15" early 2011 with a snow leopard system. is adobe photoshop cs5 version 12.0x64 compatible with my unit and my system?

  • No sound after installing XP-sp2 on U300

    Hellllo I'm newbie...... I have a u300 laptop. I changed my OS to XP. I completelly format drives and then I install new XP-sp2. After that I downloaded all the appropriate drivers from the toshiba website. All the hardware perfectly works except sou

  • New to LV DSP Module,ask about the supported functions

    Hi all, I plan to use LV DSP module, but I am not sure if this module supports legacy LV functions. I looked at its manual, it only mentions DSP module supports many DSP specific functions. Does it support linear algebra functions like eigenvalue/vec