Alright, found this one too... it was actually right in front of my
face when I was looking in to my last post:
function getUbiquity(){
var mainWindow = window.QueryInterface
(Components.interfaces.nsIInterfaceRequestor)
.getInterface
(Components.interfaces.nsIWebNavigation)
.QueryInterface
(Components.interfaces.nsIDocShellTreeItem)
.rootTreeItem
.QueryInterface
(Components.interfaces.nsIInterfaceRequestor)
.getInterface
(Components.interfaces.nsIDOMWindow);
return mainWindow.gUbiquity;
}
Then you just throw this in like so:
$('select').change(function() {
var ubiq = getUbiquity();
ubiq.__textBox.focus();
}
On Feb 25, 10:55 pm, GooseusTheGreen <[email protected]> wrote:
> I was looking to have users select from a list of items in a select
> box which pops in to the preview block.
>
> When a user changes the value of the select box I want to give the
> command line the focus back so they can hit 'enter' immediately to run
> the command.
>
> I'm unsure how to access that input component to, any help is much
> appreciated. Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---