Subject: How to enable keyword "Find" function in a Desktop App?

Original Post David HAN's Avatar

David HAN

09 Feb, 2010 05:15 AM via web

Hi there,

I know webkit has been used for the presentation layer of Titanium Developer.
So now, all the toolbar interfaces have been removed but I would still need the "Find" feature (the search box that appears when one presses Ctrl+F).

In fact, for the XML file editor I'm developing, it would be great to have the Find feature back.

Does anyone know how to enable this?
Or, if that can help further questions of this type, how to enable some other webkit UI elements like status bar or progress bar for example.

Cheers,

David

  1. Support Staff 2 Posted by Martin Robinson on 09 Feb, 2010 06:09 AM

    Martin Robinson's Avatar

    Hey David. I'm sorry to say we have no 'find' feature exposed in our
    API, though it should be possible to implement this with JavaScript
    (look out for the <a
    href="https://developer.mozilla.org/En/DOM/Window.scrollTo">window.scrollTo</a>
    method).

    Status bars and progress bars are not WebKit features, but features of
    WebKit-based browsers such as Safari and Chrome. If you find yourself
    needing them, it may make sense for your application to simply be
    browser-based.

  2. 3 Posted by David HAN on 10 Feb, 2010 02:33 AM

    David HAN's Avatar

    Hi Martin,

    Alright, so there's no native solution to do that.
    I've already made some a Find function in JS for this; I was only hoping not to use it.

    What I like in Titanium Developer though is the cross-platform support and the wide range of system API (filesystem, socket, etc...) already available. I'm sure it will be useful for me later.

  3. 4 Posted by David HAN on 10 Feb, 2010 02:37 AM

    David HAN's Avatar

    But also, in a maybe-not-so-distant future, won't it make sense to have an API for these though?
    Since we can load an external web page through Titanium App, it would make sense to be able to show the load progression to the user.

  4. Support Staff 5 Posted by Martin Robinson on 10 Feb, 2010 07:42 AM

    Martin Robinson's Avatar

    I think having an API for getting information on load progress is a great idea.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

You can attach files up to 10MB

What number comes after 20?