textinput

Capturing user input from Flex TextInput control: which event to use?

Should I use the change or textInput event to capture user input on a TextInput control? Why? ...

Access to elements defined in MXML from External AS

Hi guys, I have a mxml with a form, and inside it, two TextInputs. I hate having any piece of code inside the MXML file (I come from a Javascript formation) so I use a mx:Script source="external.as" tag to include any code used in any MXML file. The problem is that if I have this code on the external.as file: private function popul...

Delphi InputBox for password entry?

Inputbox: answer:=Inputbox('a','b','c'); works good, but I'm looking for a masked one, like a password box where you only see little stars instead of the typed characters. ...

How can I reference the TextInput of an editable ComboBox?

I have an editable ComboBox component and I want to reference the TextInput that is shown, in order to programmatically select the Text in it. This is very straightforward on a TextInput: private function selectNameText():void { nameTextInput.selectionBeginIndex = 0; nameTextInput.selectionEndIndex = nameTextInput.text.length; ...

How can I remove drop shadow from TextInput?

I have a style sheet in my Flex Application, referenced as: <mx:Style source="/assets/stylesheets/default.css" /> In this style sheet, I set dropShadowEnabled to true gloablly: global { fontSize: 11pt; dropShadowEnabled: true; verticalAlign: "middle"; } This gives a drop shadow to many components, including all TextInpu...

How Can place a watermark in Flash Input Text field

Hi Everybody, I have a doubt in flash AS3, my requirement is how to place a watermark in Flash Input text field so that if any user clicks on the input text field then the text which was already appearing should not be visible . I hope that i will get a better answers from anyone of you Thanks --Jennifer. ...

Problem with the Flash Contact Form

Hi, In Flash (AS3) Iam creating a contact form in that i have taken one " Submit Button" , one " Reset Button", four input text fields " Name, Email, Subject, Message" with instance names " contact_name, contact_email, contact_subject, contact_message" Iam very much confused about setFocus and killFocus. In AS3, i have given contact_n...

Keeping caret position in a visible position in text input - firefox misbehaves

I'm toying with the idea for my text input box of clicking on a div containing a selection of "tags" to add meta content. My text input has a width of 35, but I want it to be able to overflow. I've searched and found methods to focus and position my caret at the end of the updated input content, and chrome and IE behave themselves and a...

How can I set "maxChars" of the TextInput in an editable ComboBox?

I want to set the maxChars property of the TextInput of an editable ComboBox. I am currently trimming the text to a set number of characters using a change Event: private function nameOptionSelector_changeHandler(event:ListEvent):void { nameOptionSelector.text = nameOptionSelector.text.substr(0, MAX_LENGTH); } This feels like over...

How to change title of some text input depending on a radio with jquery ?

Hi! As you can see on http://jsbin.com/erivi/ I'm using Jquery to change some image (and image attribute) depending on radio button selected, I'm also removing form text when clicking inside it. And now what I'm trying to do is to change the text of the form depending on the radio button checked. For example when clicking on "Choice 3...

Recommendations on HTML Form Input Field Lengths (e.g. username, e-mail)

Are there any guidelines/recommendations on how long the input fields should be on HTML forms. Specifically: Viewable length (the length of the input field the user can see on the screen - without having to scroll horizontally. i.e. SIZE, not MAXLENGTH) Capture length (the number of characters the HTML form will save to the database) ...

Adobe Flex - Textinput messing up with commas

In Adobe Flex, I'm trying to restrict the input to allow the user to type only a list of IP addresses, separated by a space or a comma. Currently, I have: I expected it to be able to enter all alpha-numeric characters, periods, colons, spaces and commas. However, the commas I cannot be entered, unless the first character is a comma. ...

JSF UIInput in DataTable Footer

I am adding (UIInput) to the footer columns (UIColumn) of a datatable (UIData) created dynamically. The UIData is bound to a datatable tag in the jsp. In the datatable, I just have headers and footers with the header having the labels and footer having the corresponding value in editable textbox. When I change the value and submit the fo...

UITextField focus

How can I programmatically assign focus to a specific UITextField in a view? I have several fields and on view display, I'd like to put the cursor on a specific field, not the first one at top. ...

User Input filtering in PHP

Hello guys, Am currently working on an application that requires users to submit posts and comments which is displayed on the site. As we all know that user input can't be trusted so i used htmlspecialchars($string,ENT_QUOTES) to process user's posts and comments. Now, i want some certain html tags ignored. such as <b><br /> and a few...

How do I remove the border theme colors from safari text inputs in CSS?

Check out http://www.tonyamoyal.com/rounded_corners2.html with firefox and safari. I am trying to hack a rounded corner text input solution but safari displays a "theme color" when you click on the text input. Any thoughts on how to remove this in CSS? Maybe I don't know the name of this attribute because I cannot find anything search...

Flex TextInput Control: Search Style rendering

Hello, I have a TextInput control which has a search functionality for the people in the system. It works fine. All I need is to style it in such a way that, it will be having search image on the right, which when clicked, will search. Its actually for look and feel part of the application, which will make the search box look much bette...

Error / Validation / ToolTips in Adobe Flex

Hi, Is there any code or custom options available to achieve the following : 1> When an error occurs in a text box, the validation shows the error. Enforces / Forces the user to remove the error and only then proceed to complete remaining text inputs. KEEPS the mouse focus on the Text Box. I have used built in mx:Validator tags, but i...

JSF inputText and inputSecret differ in size

Hi %, again just a short one: I've done a login page in JSF which contains an inputText for the username and a inputSecret for the password. Size is set to 20 for both. FF manages to show it correctly, IE shows them in different sizes. Is there a way to make them look similar in both? rgds, KB ...

Default text on input

How to set blank default text on input field and clear it when element is active. ...