Displaying a "clear button" (delete button) in an iPhone webapp textbox - iphone

I am creating an iPhone webapp with a textbox. I would like that textbox to display a "clear button" on the right side of the box... aka the round grey button with the X in it.
Is it possible to set a css or html property so safari handles this, or do i need to develop this ability on my own using an image and some code.
I know you can set the Clear Button property of a UITextBox for a native app, but this is a webapp i am creating.

An input field of type "search" will bring up a rounded text box with a clear button marked "X". That is the closest I have found without using javascript.
<input xmlns="http://www.w3.org/1999/xhtml" type="search" value="search me" />

Related

How to find which controlls that can use the icon attribute? [SAPUI5]

I am looking for controlls that can use the icon attribute in order to display the sap-icon://accept. Till right now i have been using button in order to display icons, but as of right now, the border that does make an button, isn't fitting for the task, as such, i am looking for a new controll, that supports icon attribute as well as onPress/onClick Events.
<Button icon="sap-icon://accept"/> //displays the accept icon, however it does an border that makes an Button.
There is sap.ui.core.Icon class for displaying icons.
It also has press event you can use to click on that icon.
<core:Icon src="sap-icon://accept" color="#8875E7" press="handlePress" />

MonoDevelop Designer GTK# Get Button to show Stock Icon

I am having some issues getting my button in the designer GUI to show the stock icons. I have the button set to "text and icon" with an icon selected however the text is only showing... No icon. Some of the stuff I have read talk about solutions for when you are creating a button from code. However I am creating the button in the designer. It would be pretty annoying if I have to address each button in code to change it to show the stock image.
If it still helps you: when you use the designer, select your button and go into the properties tab. There you can change the button properties from "Text Only" to "Stock button" or "Text & Icon". Using "Stock Button" gives you a selection of stock icons you can choose feom. Using "Text & Icon" lets you set a custom label and lets you load custom made icons (and also stock icons) into a Pixbuf.

Facebook like button display under content- squarespace

Im trying to add a facebook like button to my website, however when you click the like button, the share bubble appears under the content.
Im using facebook´s HTML5 button on squarespace
You can see the problem here, at the bottom of the page
http://mindarin.com/
The share bubble appears under the logo, it happens everywhere though, if I place the button where I want to ( top of page ) the bubble appears behind the main image.
Thanks!
You can hide the share tooltip by adding overflow:hidden;height: 21px; to fb-like widget css.
<div style="overflow:hidden;height: 21px;" class="fb-like" [...] />

Change "enter" key text on iPhone keyboard?

(This question concerns HTML pages in Safari, not app development in XCode.)
In Safari on iPhone, when clicking on a <input> or <textarea>, the text on the enter key
says "enter".
Is it possible to change this text?
I remember a posting saying something about using <textarea title="My button text">, but this does not work when I tried it.
Note.
You get the return key and keyboard types defined in the OS. Unless you want to try to hack the keyboard's view hierarchy to change that button, which would be a really bad plan. (Standard recommendation here is to file a bug report with Apple to let them know you'd like more/different options.)

In the iOS SDK, how can I include a button in a UITextField like Mobile Safari does?

How can I display a button and/or activity indicator inside of a UITextField on the iPhone? I'm trying to reproduce Mobile Safari's location text field which contains either a reload button or a cancel (stop loading) button which is right-justified inside of the text field.
Similarly, when you click inside of the text field (not on the cancel/reload buttons) to edit the URL, a clear icon (x inside of a circle) is shown inside of the text field which will erase the contents of the text field.
How can I create this in my own apps? I cannot seem to do it via Interface Builder so I suspect it's being done in code.
There is a built in option that worked for me...check here:
Adding the "Clear" Button to an iPhone UITextField
Check out TTMessageController.

Categories