天道酬勤,学无止境

textfield

Xcode Number pad with decimal error

In xcode when I turn on the decimal pad keyboard option in the .xib for my textfield, and I run the application, I receive this error: Jun 13 01:22:38 Nicholas-Gibsons-iPhone Quick Utilities[1009] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. If you have any idea what this really means, you

2021-06-13 19:29:37    分类:问答    xcode   decimal   textfield   keypad

Which event belongs to “type text into textfield” using jQuery

Just imagine a formular where there is a checkbox and a textfield. If someone starts typing into the textfield "bla bla bla whatever", the checkbox should tick itself. Is there a event that corresponds to the typing or do I have to use .focus ?

2021-06-13 17:07:45    分类:问答    jquery   events   checkbox   textfield

TextFormField validator not working - The method 'validate' was called on null

I am trying to build a simple login page for a new flutter app. The widget tree is very basic. It consists of a MaterialApp that contains a Scaffold. The 'home' of the Scaffold is a StatefulWidget which contains the Form with two TextFormFields inside. The TextFormFields have 'validator' code to check for null values. There is a button which invokes a method 'validateAndSave' when pressed. Inside this method, I am calling 'validate' method for an instance of the GlobalKey. When clicking on the button, the validators don't seem to be firing and I am getting the following error message: I

2021-06-13 16:52:41    分类:问答    flutter   validation   dart   textfield

Keep text in text field after submit

I'm building a form, and I want that all the inserted values will be kept, in case of form submit failure. This is my code: <?php $error = ""; $name = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = $_POST["name"]; // Verify $_POST['name'] greater than 4 chars if ( strlen($name) < 4 ){ $error= 'Name too short!'; } } ?> <html> <head> </head> <body> <form method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" name="myForm" id="idForm"> <input type="text" placeholder="Name" id="name" name="name" value=""/> <input type="submit" value="submit"/> </form> <?php echo "<h2

2021-06-12 11:23:05    分类:问答    php   html   textfield

How to set the cursor position at the end of a string in a text field using jQuery?

I am using jQuery 1.6 and I have a text field for which I would like the cursor to be positioned at the end of the string\text after the field receives focus. Is there a trivial or easy to do this? At this time I am using the following code: $jQ('#css_id_value').focus(function(){ this.select(); }); $jQ('css_id_value').focus();

2021-06-12 11:18:08    分类:问答    javascript   jquery   focus   cursor   textfield

在swift ios中更新文本字段ui(update text field ui in swift ios)

问题 我在使用 ios SDK 8 swift 时遇到一个问题 我使用回调来获取数据背景,当获取数据时,我想设置一个文本字段值并更新屏幕。 这是我的代码: @IBOutlet var txtTest: UITextField! @IBAction func login() { let username = "aaa"; let password = "bbb"; var res = ServiceClient.login(username, password: password){ (res:String, error:String?) -> Void in if(error == nil){ self.txtTest.text = res; } } } 运行此代码并正确获取数据并且 txtTest 未更新,但是当我点击 txtTest 时,将显示该值。 那么有没有办法强制更新UI? 或向 UI 线程发送消息? 回答1 每个人都想在 Swift 中进行 UI 更新时遇到的相同问题:永远不要在任何辅助线程中更新 UI。 这意味着任何有闭包的事情。 由于 Swift 大量使用闭包,因此这个问题越来越多,但并不新鲜。 请参阅 Swift 更新标签(带有 HTML 内容)需要 1 分钟以了解正确的处理方式。 回答2 UIKit 不是线程安全的,只能从主线程更新。 下载是在后台线程上完成的

2021-06-12 10:53:43    分类:技术分享    ios   user-interface   background   swift   textfield

Monotouch: How to update a textfield in AppDelegate partial class?

I have a textfield (created using IB) that has an outlet connected to App Delegate. Accessability is enabled. I have a class for IAP, where I need to update that textfield. It is not visible from my code. How do I do this?

2021-06-12 10:45:20    分类:问答    xamarin.ios   textfield

Blackberry Java: TextField *without* the caret?

I want a non-editable TextField (or a subclass) that doesn't even have the caret displayed. Alternatively, I want a multiline LabelField. Is any of these possible?

2021-06-12 06:38:05    分类:问答    user-interface   blackberry   textfield   caret   labelfield

Xcode:如何获取 textLabel 以显示在 textField 中输入的附加静态文本?(Xcode: How do I get a textLabel to display addition static text that is being entered in the textField?)

问题 我是Xcode新手,请帮忙。 所以我知道如何使用文本字段更改标签框中的文本: self.textLabel.text = self.textField.text 问题是:如何将静态文本添加到正在输入的文本中? 就像在 textField 中输入名称一样,如何让标签框显示“Hi”,然后输入任何文本? 在“=”符号之后,我必须在“self.textField.text”前面放什么? 谢谢 回答1 您需要连接 2 个字符串。 这里有一些线索: Objective-C 中连接 NSString 的快捷方式 在字符串 Objective-c 中连接字符串 Objective C 中的简单字符串连接 所以: self.textLabel.text = [@"Hi" stringByAppendingString: self.textField.text] 或者 [textLabel setStringValue: [@"Hi" stringByAppendingString: self.textField.text]];

2021-06-12 00:38:24    分类:技术分享    xcode5   textfield

Dialog creation in Blackberry

Hi, I want to create a Login Screen which has a Username and Password and a Sign in Button But when a user fails to enter correct information inside the TextField of Username or Password a pop up like the image chat dialog should pop up from corner of TextField's right side displaying appropriate message How can this Customization be achieved?

2021-06-11 23:47:46    分类:问答    blackberry   screen   customization   textfield