Disable HTML TextField Drop down suggestion box - browser

Ok so you know when type something the textfield such as "test" and then go back and it will suggest "test" when you type in "t"? How do I disable the textfield from doign that drop down suggestion box?
If at all, possible - thanks.

Use autocomplete="off" as in Google homepage

That's a feature of the browser, not of your HTML. If you want your browser to stop doing that, turn off "Auto Suggest" or "Auto Complete" or whatever the feature is called in your particular browser.

I think that's a function of the browser, and the way to turn it off would vary. It's not something I think you'd be able to do in code, though.
I just checked IE8 and you can go to Tools -> Internet Options -> Content, click the Settings button under AutoComplete, and then untick the Forms box.

Related

XPAGE Modal Dialog [duplicate]

I am using the extlib Dialog component to display some data. I want the user to only close the dialog via a button I have in it.
I can't see any option to disable the close icon in the title bar. Can someone point me to the documentation on doing this? So far I've checked the wiki + extlib book (maybe I missed it?).
css rules, again! As far as I can see there's no "native" way to get rid of that close button (and to be honest, I don't think it's a really good idea to do so; see below). But using some css you of course can hide anything you want on your page.
Just give your dialog some custom styleClass; at runtime this custom class is then added to the dialog's outer div-container.
The close button itself is an link inside a span; the has tow style classes, one being "lotusClose".
Finally adding this piece of code to your style sheet will hide the button:
div.yourCustomClass a.lotusClose {display:none;}
Caveat:
The "close" button is there on purpose. And instead of hiding it I would rather add some kind of validation code to your dialog's close event. There are numerous examples, but maybe you just want to refer to dojotoolkit.org's reference for
dijit.Dialog
(section "Forms and Functionality in Dialogs).
Btw: since the dialog is based on dijit.Dialog you may also want to browse stackoverflow's dojo section.

Anyway to override/manipulate the Bookmark Page Action dialog box?

I am working on an extension that involves interacting with Chrome's bookmarks.
Is there anyway to either override the current Page Action dialog box for Bookmarks when you click on the star or is there anyway to change listing for the drop down of possible folders?
Barring that, is there a way to remove the star from the omnibar so that I can replace it with my own icon from my the extension?
No to all questions unfortunately.
The best your going to get is to add your own page action next to the default.

Automatically open selectOneMenu behind p:inplace when it's clicked

I'm using Primefaces p:inplace such that when some text is clicked, it's replaced with an h:selectOneMenu, and from there the user can open the menu and select an option from the drop-down choices. It would be helpful (and alleviate an extra click) if when I clicked the p:inplace element, the selectOneMenu that appeared was already activated with its drop-down options showing, as if the user had clicked it. I've searched for this on Google to no avail, and was wondering if perhaps it is actually possible to do such a thing, even with JavaScript. (I can also use p:selectOneMenu or a selectOneListbox if need be, but it didn't seem like that would help.)
As you say, you could use a selectOneListBox, especially if you have few options(works just fine inside p:inplace). I've never heard of a request like that and I think it's all about the browser (there may be some restrictions regarding an auto-expand).
But you can do a thing that could please you: remove the default option, like:
<f:selectItem itemLabel="Select..." itemValue=""/>
and do some research to find out the most selected option and put that option as a default/first. So most of the people will not even have to expand the select menu.
I found this similar Stack Overflow question today (don't know how I missed it originally):
Can I open a dropdownlist using jQuery
Looks like our fears are right and there's no way to open the drop-down list itself, but a combination of CSS and modifying the element may give me the results I'm looking for. Thanks!

How to add custimized context menu item on right click in browser window?

Here I want to add my custom menu option i.e. ColorZilla, Aptana Studio on web browser right click
You can only do this with a browser plugin. Each browser will have its own syntax for plugins and specifically adding context menu items.
Aleks G. is right you cannot do that directly within the browser.
I don't know if it can help you or if it is what you are looking for but, within the browser you can handle the right click interaction in order to display your own custom menu ( not a particular menu item but the full menu ) ... meaning the default browser menu won't get displayed at all.
In case you are interested, you can have a small sample here

UIWebView example code for in-app browser?

Anyone have some sample code for an in-app browser that they would like to share?
I am looking to add a browser view in my app that is pushed and includes a toolbar with four buttons: back, forward, stop/refresh and actions. However, I'd like to show somewhat transparent and none-tapable buttons when you can't go forward or back, and also have the stop/refresh button show the appropriate icon when it's loading and done loading?
My issue is currently that I cannot get "blanked out" back and forward that cannot be tapped if you cannot go back in the web history. Also, how do I change out the stop icon with the refreshing icon when the view is loading?
For tool bar items, simply set "item.enabled = webview.canGoForward;" (or canGoBack). To change the refresh/stop button you can set item.customView if you want to use a progress view or some such, otherwise if you just want to use a static image you can set item.image. All this is in the documentation as well.

Resources