Subject: How to enable keyword "Find" function in a Desktop App?
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
Support Staff 2 Posted by Martin Robinson on 09 Feb, 2010 06:09 AM
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.
3 Posted by David HAN on 10 Feb, 2010 02:33 AM
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.
4 Posted by David HAN on 10 Feb, 2010 02:37 AM
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.
Support Staff 5 Posted by Martin Robinson on 10 Feb, 2010 07:42 AM
I think having an API for getting information on load progress is a great idea.