Remove caret from HTML text input - html

I'm trying to create a hidden textfield for an iphone specific site, basically I've taken a textfield, hidden all of its elements and show an image instead, when clicked this pops up an onscreen keyboard, as well as submitting when the form loses focus.
What I can't get rid of is the text caret. It flashes at me as if I'm some loser who can't set his VCR to anything but 12:00.

Have you tried disabling the text field as well? disabled="disabled"

Why not just change the type of the input element to "hidden" when it's not supposed to be edited? E.g.
<input type="hidden" name="datafield" id="datafield" />
That way it won't allow for the caret to be standing on it. If you need its value to be displayed, add a DIV and populate it with the datafield value. Then just put a click event on the DIV to activate the input field.

Related

when user enters anything in Korean into the input tag and shifts the focus to any other part of the screen, the focus is shifted back to the input

jsfiddle
steps to reproduce :
write Korean in the input box
scroll down till the input box is hidden
Click any where on the screen
Expected: input box will come into focus at (Korean text)
when the user types in Korean in the input box .and if we move the input box out of frame. and click anywhere else .input box will keep in frame .this is not reproducible in mac. `
If you want the focus to be added back to the input field even on clicking anywhere on the screen, use focus-me="1" (I took 1 as an example, you can use any number).
If you don't want the focus to be added back to the input field, you can use $removeAttribute('focus-me') or remove the autofocus element using your .ts file

Binding Text Label to an Input Field so that when Google Maps moves them they move together

Can someone please help with a the binding of a text label to an input text box. The purpose is to implement a search box as per this question.
The problem is, is that when you move a Google Control, say to place it at the top of the map, Google appears to take control of the input box and leaves everything else behind. I have tried every possible technique and even this one which I thought might work; but it doesn't.
Basically what I want is for this to bind:
<div>Search Box: <input id="pac-input" class = "search-input"></input></div>
EDIT: Just thinking about it I could just create a label an position it near the <input box> but that could be a little messy and possibly hit and miss.
You need to include the label in the HTML that you place in the control. Bind the autocomplete to the input element.

One label two input fields?

I am working on a form that is in a format like:
HOME CELL
PHONE_NUM TEXT_INPUT TEXT_INPUT2
Why can't TEXT_INPUT and TEXT_INPUT2 be listed in the for with &&?
The benifit of having the label is to keep the input fields aligned correctly on the same row.. is there any other benifit?
Adding a for attribute to a label makes it so clicking on the label will put focus on the input (assuming it's a text input). Therefore having two ids in a single for attribute doesn't make sense: the browser wouldn't know which input to put focus on.
for attributes also have nothing to do with styling and positioning. You should be able to keep your form looking the same without a for attribute.
There ARE other benefits - The <label>provides a usability improvement for mouse users in that when properly bound to the <input> it will toggle the <input>. Basically it gives mouse users a bigger target to hit. Eg they can click the <label> in addition to the <input> or control to give it focus.

how to keep selected highlight

The process is like this as below.
a user choose some text and make selection on it. then it's gonna be highlighted.
the user move her mouse focus on the textbox on the html.
the highlight on the text in the html is still there.
If the user move her mouse back to the text, click somewhere on the text zone, the highlight would be gone.
The user can make another new highlight.
Here's my question.
Can I keep the highlight even though I change the focus on other object from text in the html?
I don't want to use span for it since if I want to make new highlight, it's tedious to move the span back out. Is there another way?
Try this: http://rangy.googlecode.com/svn/trunk/demos/highlighter.html?serializedHighlights=

ms access 2003 - Text boxes on a form: not jumping to any text box

Ok so I add all these text boxes on an unbound form, and everytime you open a form, it sort of jumps to the first text box so you can enter some information into it.
How do I get rid of that, because I do not want it to auto jump to the first text box when the form opens...i do not want it to jump to any text box when the form open at all.
thanks
You will have to decide where you do want it to go, because it has to go somewhere. You can control where will tab order, set focus, and autotab.
I have just checked, and the best thing to do is to set the textboxes Enabled property to No and the Locked property to Yes.
The default behavior is of course for the cursor to move into the first control that you’ve set up in the tab order.
Assuming you still want some sensible tab order in the form, then place a zero length text box in the forms headder. Remove the tab stop setting (other tab in property sheet). You might as well set this box transparent also.
Then in the forms on-load event, simply go:
Me.NameOfTextBoxinFormsHedaing.SetFocus
If I read your question correctly it seems that you do not want any of your textboxes on the form to have the focus on opening the form.
What you need to do in this instance is to create a new unbound textbox on your form, and then make this unbound the first item in the form's tab order. Then resize the unbound textbox to 0 height and 0 width, making it invisible.