textfield

Get xpath location of element in iframe(iframe from my domain)

冷暖自知 提交于 2019-12-31 05:47:08
问题 I have a two codes and I try to connect this two codes in some way. Also in code is function for get xpath location but how to use this on iframe. $(#iframeID) .... and function to write result of getXpath function into fields in focus. First I load some URL them I trying to use getXpath location function and write results into fields in focus but it doesn't work. Here is the code which I use to get content some URL address and show in iframe on my domain (so I can get XPath becouse iframe is

How to add separator after every 2 character while changing text in textfield in Swift 4

三世轮回 提交于 2019-12-31 03:55:06
问题 In my project I need to put device MAC address validation while adding text in text field. My device mac address format is “AB:5E:CF:45:S5:6D”. So when ever I will add any character it should be changed with adding colon after 2 character in textfield. Example : “45DF5R6” = “45:DF:5R:6” “SD45ER65DF6G” = “SD:45:ER:65:DF:6G” Appreciated your help. Thanks in advance. 回答1: You're looking for delegate function of a UITextField: func textField(_ textField: UITextField, shouldChangeCharactersIn

Finding and auto-filling HTML login forms in a UIWebView using JavaScript

こ雲淡風輕ζ 提交于 2019-12-29 18:01:09
问题 i have a UIWebView which acts like an internet browser and loads the HTML of the webpages that it is at. in the webViewController, the method webViewDidFinishLoad, would have loaded the HTML from the webpage when the webpage finish loading on the UIWebView. From the HTML i would like to sieve out textfields to facilitate the auto population of that textfield with values stored in my database. Any methods to do that? The method should be able to work on all websites. Set text for a textfield

Restrict HTML input to only allow paste

不羁岁月 提交于 2019-12-29 07:52:07
问题 Is it possible to have a HTML input on a form that only accepts pasted input? As part of our registration process, the enduser needs to enter a 20 character identification token into a basic HTML input form. Ideally, the user would simply copy/paste the token into the appropriate field. We don't want to allow the user to manually type this in, as it is likely that they will mistype letters, and we don't have any reliable means to validate the input. The token comes from desktop software and

Restrict HTML input to only allow paste

扶醉桌前 提交于 2019-12-29 07:52:05
问题 Is it possible to have a HTML input on a form that only accepts pasted input? As part of our registration process, the enduser needs to enter a 20 character identification token into a basic HTML input form. Ideally, the user would simply copy/paste the token into the appropriate field. We don't want to allow the user to manually type this in, as it is likely that they will mistype letters, and we don't have any reliable means to validate the input. The token comes from desktop software and

how to localize label strings in ios for a beginner

半腔热情 提交于 2019-12-28 18:22:11
问题 Hi im very much stuck on the process of localisation on ios . heres what i do understand , how to go to the project explorer and set base localizations for diferent countries, how to make a string file and set it to be localized to one of the particular countries chosen within base localisation such as simplified chinese key value pairs and how to correspond the word "HELLO WORLD" = " some other language"; with in the localized string file how ever the app which has a simple label with the

ITextSharp - text field in PdfPCell

﹥>﹥吖頭↗ 提交于 2019-12-28 16:04:44
问题 I'm using iTextSharp to create a PDF, how can I add a textField into PdfPCell? 回答1: You wouldn't really add a 'text field' to a PdfPCell, you'd create a PdfPCell and add text (or other stuff) to that. mikesdotnetting.com might have the clearest example and there's always the iTextSharp tutorial. 回答2: Give this a try. It works for me. Document doc = new Document(PageSize.LETTER, 18f, 18f, 18f, 18f); MemoryStream ms = new MemoryStream(); PdfWriter writer = PdfWriter.GetInstance(doc, ms); doc

ITextSharp - text field in PdfPCell

╄→尐↘猪︶ㄣ 提交于 2019-12-28 16:03:12
问题 I'm using iTextSharp to create a PDF, how can I add a textField into PdfPCell? 回答1: You wouldn't really add a 'text field' to a PdfPCell, you'd create a PdfPCell and add text (or other stuff) to that. mikesdotnetting.com might have the clearest example and there's always the iTextSharp tutorial. 回答2: Give this a try. It works for me. Document doc = new Document(PageSize.LETTER, 18f, 18f, 18f, 18f); MemoryStream ms = new MemoryStream(); PdfWriter writer = PdfWriter.GetInstance(doc, ms); doc

Hide input caret of TextField in JavaFX8

陌路散爱 提交于 2019-12-28 06:59:14
问题 I would like to hide the input caret of a TextField in JavaFX8. I already tried to set the text fill to white (my TextField has a white background), but then my user input also disappears. The problem is that the textfield still needs focus, so I also thought of some EventHandler which listens to user input, and focusses on the textfield when a key is pressed, but then I would miss the first key typed. Anyone that knows how to do this? Or is it not possible in JavaFX8? 回答1: Update for Java

Numeric TextField for Integers in JavaFX 8 with TextFormatter and/or UnaryOperator

帅比萌擦擦* 提交于 2019-12-27 17:40:48
问题 I am trying to create a numeric TextField for Integers by using the TextFormatter of JavaFX 8. Solution with UnaryOperator: UnaryOperator<Change> integerFilter = change -> { String input = change.getText(); if (input.matches("[0-9]*")) { return change; } return null; }; myNumericField.setTextFormatter(new TextFormatter<String>(integerFilter)); Solution with IntegerStringConverter: myNumericField.setTextFormatter(new TextFormatter<>(new IntegerStringConverter())); Both solutions have their own