revBrowserSet, search a second string
Terry Judd
tsj at unimelb.edu.au
Wed Feb 10 17:04:44 EST 2010
Claus - This looks like a bug (at least on OSX). As you point out the docs
say that setting the selectedtext to empty or a string that does not occur
in the text should 'reset' the selection - but doesn't. Certainly worth
reporting.
In the meantime it looks like you can work around it by handing the focus to
another control. This should remove the current selection in the browser
text and let you 'search' again. I just tried with with the browser example
stack and doing the following...
focus on btn "browser on" -- (button that toggle the browser on and off)
... Before changing the search string had the desired effect.
HTH,
Terry...
On 11/02/10 7:35 AM, "Claus Dreischer" <claus at dreischer.de> wrote:
> Hi,
>
> i see a strange behaviour when searching a second string in a revBrowser:
>
> First i open a revBroser and i can see the web page i stated
> Then i search in that page with:
>
> revBrowserSet sBrowserId, "selected", search_text
>
> "sBrowserId" is the Browser ID i got from revBrowserOpen
> "search_text" is the variable containing my string to search, like "Mike"
>
> I can do this repeatedly and i find the different occurences of that
> string in that page. All fine here.
>
>
> Now when i change the search_string to e.g. "John",
> nothing happens. "John" is not found (but he's on that page) :-/
>
> Changing the search string again (even to "Mike"): Nothing happens. :-/
>
> Resetting the search with an empty search string (like the doku said):
> Nothing happens :-/
>
>
> Any ideas what i could have done wrong?
>
> Regards,
> Claus.
More information about the use-livecode
mailing list