inputbox

javascript, getelementbyname and focus

て烟熏妆下的殇ゞ 提交于 2019-12-04 09:54:20
I am trying to create function that will look at the username if it is not valid send an alert to the user, clear the username field, and put the username field back into focus. I am trying to do this all with the getElementsBynName() function. It is all working with the exception of getting the field back into focus. My code is below. Does anyone have any suggestions. function uchecker(uname) { var validUname = uname.search(/^\w+@sabc.com$/); if(validUname != 0) { alert("You have entered an invalid username. \n The username must be a valid @sju.edu email address value " + document

Application.Inputbox [LEFT] and [TOP] not working in Excel Vba. Why?

自古美人都是妖i 提交于 2019-12-01 20:38:22
I have a simple inputbox in my VBA code. I would like to set its starting position. I know the parameters [LEFT] and [TOP] should do that, but they won't work. Here is what I have: x = Application.InputBox(MyPrompt, MyTitle, , 50, 50) and here is the function syntax InputBox(Prompt, Title, Default, Left, Top, HelpFile, HelpContextId, Type) (I left the third parameter [DEFAULT] blank). No matter what numbers I use for LEFT and TOP, the inputbox always starts at the same place. What is wrong with that? Tim Williams There's a difference between InputBox("prompt","title","default", 10000,10000)

Overcome VBA InputBox Character Limit

戏子无情 提交于 2019-12-01 05:46:13
The current function I use to collect text InputBox can't accept more than 255 characters apparently, and I need to be able to collect more than that? Is there a parameter or different function I can use to increase this limit? To be pedantic, the Inputbox will let you type up to 255 characters, but it will only return 254 characters. Beyond that, yes, you'll need to create a simple form with a textbox. Then just make a little "helper function" something like: Function getBigInput(prompt As String) As String frmBigInputBox.Caption = prompt frmBigInputBox.Show getBigInput = frmBigInputBox

Overcome VBA InputBox Character Limit

不问归期 提交于 2019-12-01 04:11:14
问题 The current function I use to collect text InputBox can't accept more than 255 characters apparently, and I need to be able to collect more than that? Is there a parameter or different function I can use to increase this limit? 回答1: To be pedantic, the Inputbox will let you type up to 255 characters, but it will only return 254 characters. Beyond that, yes, you'll need to create a simple form with a textbox. Then just make a little "helper function" something like: Function getBigInput(prompt

Delphi InputBox for password entry?

左心房为你撑大大i 提交于 2019-11-30 01:55:37
问题 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. 回答1: You can send a Windows message to the edit control created by InputBox , that will flag the edit control for password entry. Code below taken from http://www.swissdelphicenter.ch/en/showcode.php?id=1208: const InputBoxMessage = WM_USER + 200; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender:

Xcode Obj - C - retrieve user inputed text from Alert Box IOS8

吃可爱长大的小学妹 提交于 2019-11-29 18:46:42
i have the following code which will allow a user to input their full name into an alert box; //Creates the alert box UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Congratulations" message:@"You Have The High Score, Enter Your Name" preferredStyle:UIAlertControllerStyleAlert]; //Adds a text field to the alert box [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) { textField.placeholder = NSLocalizedString(@"Enter Full Name", @"Fullname"); }]; [self presentViewController:alertController animated:YES completion:nil]; //Creates a

pass inputbox value as a querystring to URL

允我心安 提交于 2019-11-29 16:45:58
I have an inputbox and a link for SEARCH styled to look like a Search button. When a user types in a keyword in the inputbox, I want to grab that keyword, pass it, and append it as a search query string to the search URL /search/pages/physicians.aspx?v=relevance&s=Physicians&k= So if Cardiologist is the keyword, it would be like: http://ABChospital.org/search/pages/physicians.aspx?v=relevance&s=Physicians&k=Cardiologist How can I achieve this in jquery? <input name="KeywordBox" class="BasicSearchInputBox" type="text" value="Enter Keywords.."/> <div class="searchBtnHolder"> <a class=

Which control to use for quick text input (inputbox)?

社会主义新天地 提交于 2019-11-29 10:53:01
I need a quick text input dialog box (MessageBox with a single text box in it). Is there any control available or should I use a form? I just want user to enter some ID. And in other occasion I want 2 texboxes for username and password. Microsoft.VisualBasic.dll has an InputBox method which you can use from C# to get a single string. For example (Add a reference to Microsoft.VisualBasic.dll first) using Microsoft.VisualBasic; string response = Interaction.InputBox("Enter a string:", "MyApp", "DefaultString", 0, 0); Othewise, you'll have to make your own form. simple one is inputbox 来源: https:/

option in dropdown box that changes an input box

旧巷老猫 提交于 2019-11-29 09:00:36
Hellp, I am working on developing an online donation site for my page. I'd like the user to have a dropdown box with payment options ($5, $10, $20, Other). I've currently set it up to where it displays an input box if the "other" option is selected; if another option is selected ($5, $10, $20) then the input box is hidden. Furthermore, donations are taken via pay-pal and I've incorporated the Pay-Pal donate button/php into the site. I've run across the following issue: because the input box is the field that populates the amount that is being donated Pay-Pal does not recognize the dropdown

Input boxes with transparent background are not clickable in IE8

半世苍凉 提交于 2019-11-28 17:24:22
I have an absolutely positioned input box in a form. The input box has transparent background: .form-page input[type="text"] { border: none; background-color: transparent; /* Other stuff: font-weight, font-size */ } Surprisingly, I cannot select this input box by clicking on it in IE8. It works perfectly in Firefox however. The same happens for background: none . When I change the background color: background-color: red; It works fine, so this is issue associated with transparent background. Setting a border makes the input box selectable by clicking on its border only. Is there a workaround