I am looking to make a page with a display on it using input boxes, but I want the input boxes to get some of the values from an array I enter at the beginning. To start with I am only entering 2 items, as it will make it easier until I have it all up and running. I have no problems getting a table to come up, with a label and then an input box beside it. I can even prompt the user for the number of input boxes they require. I also can make it so that the input box is disabled, so that the user cannot change the contents of it. But, I am totally stuck as to how to get this how I want it...
I am wanting labels at the top of each row, not the left hand side, and I am wanting rows of 3 input boxes, with the first 2 containing the text from my array, which is what I'm wanting ti be the disabled boxes. Basically I am starting a very simple page for an online order facility.
This is the code I have been working on, I have totally messed it up by now trying different things but it will give an idea of what I have been attempting I figured lol. I have got it to have 6 empty input boxes all on top of each other, but I realised after that if i set all the values etc in the table, then im not getting the array to define the contents :S and, they are still all on top of each other which i dont want... And my attempts at getting the array to define the number of input boxes has so far been futile. I end up with a blank page, just a button. just getting frustrated lol.
[code]I have created an array of cars so if personA has more cars, they can click add and select another one. If they have 1 car and just enter name and 1 car, the form works but when I click Add row and select another car, it doesnt work?
I'm using onchange display to hide/show form elements depending on the value of a select box. It works perfectly well (I actually really adore it) for one select box, but I have another select box which I'd like to act similarly.
But when I go to add a second select (obj,id1,id2,id3,id4,id5,id6) with new "ifs" and id's, etc and so forth, neither work.
Is there any way to fuse them and get a second select to work the same?
I have a form with check boxes. If I click any check box another set of text boxes are opened .I have done this using show/hide java script code. I created the edit page where all the info is loaded from database. It has check box checked on load from the database values.How can I open respective text boxes if check box checked on load .
I'm attempting to change the display property of certain divs depending on the criteria of multiple select boxes.
I got it to work by GetElementsByTagName('div') but it then selects all divs rather then the select few i actually want it to work on. I tried changing the selection to GetElementsByName but this doesn't work, why i don't really know.
I have an in-house web application in which the user inputs items to a text field. Over 80% of all data entered into the field falls is one of three values, the other 20% is random. Can I make a select field that lets the user override the values with one of his own, or equally, create a textbox with a dropdown menu to select from?
The goal is to get the behavious of a web browser's address bar: the same control could accept random input, but also make suggestions in a pre-populated dropdown list.
Ideally, the control would work with and without the mouse, as the users are not confined to any single platform and we have Linux and Windows users as well.
I am trying to use a code snippet fromthe code works fine however what I want to do is modify it so that when the user clicks the link to add another entry their would be a drop down <select> box to the left of the text input box. Which I have working but each time the link is clicked to add a new <select> and text input box row the previous <select> dropdowns seem to loose their values and only the text input boxes keep their values. So I am not sure where/how to edit my below code to work properly
I have a requirement where i need to take an IPv4 address as an input, my web page has 4 text boxes. If i have a address like this 255.255.255.255, my program jumps into the next text box without any problem as soon as i enter the 3 digits. i dont need to press any tab or any other key to go to next text box.
In case of an address like 126.96.36.199, i have to press <tab> to jump into the next text box, My project requirement says that it should work with '.' (dot) char as well.
SO here is my actual requirement i need to jump into the next text box as soon as user enters a dot (.) char without displaying the dot into the text box.
I have two input boxes on a form which receive the first and last name of a user. I want to be able to use charAt() to get the first letter in each box and pass it a third box on the same form. is this doable? May I request some help? I was thinking something like the function below would be the starting point --I stand correct, as it is not working.
Im currently working on a HTML page to add additional input boxes. I have the following code. Does anyone know how I would go about adding the required vlaues to each of the input boxes, for use later on within php?
I have to input an undefined number of rows of data. Existing data is read from a database. There is an Add button after the last row.
I can see how to add the next row: there is a hidden blank row with visibility set to 'none', which is turned to 'block' by clicking the Add button.
How can I continue to add rows? Do I need to have a large number of invisible rows and turn each one on as required? (I don't want to have to submit the form for each row, which would be another solution).
I am trying to create a script for checking that checks that the email address entered into two input boxes is the same when a submit button is clicked, I have these two input boxes <input type="text" name="user_email" id="user_email" /> <input type="text" name="user_email2" id="user_email2" />
And this code for the button <input type="submit" name="submit" id="submit" onSubmit="checkEmail" /> However this code is not working.
I am new to ajax, meaning I know nothing what so ever of programing ajax. I want to do a simple login interface with email and password (with php), but i also want that when I press submit button it show a box with "please wait..." message (this box must slide, from the top of the page). Also this box will display errors messages such as, "invalid email or password" and so on.
I'm hoping this is possible or that there is an easier way to do this. I'm having an issue with displaying data from one array that contains information about users in a table that is controlled by a different array.Is it possible to do this or is this use of arrays to display the data the wrong approach?
The table is located on one webpage, I simply want to extract one piece of information that I have placed in the initial array as part of the login script that contains user information (for validation for login etc) and display it in a table on the new webpage that is opened as a result of successful validation of the user details. I'm completely stumped and after many attempts I just can't seem to get it to work.
Somebody asked me if it would be possible to add auto-advance to a web form where there are a lot of repetitive 5 character fields. I took a look around the web and found a script, which appears to work in the couple of browsers I tried it in. However, when I look at the script it appears to have the wrong number of brackets. Then when I changed the script to the way I thought it should be, it still worked!
A couple of questions:
Are the brackets in the original script below wrong or am I missing something?
Can anyone recommend a different auto-advance script?
Or, is auto-advancing a bad idea all around from a usability/accessibility point of view?....
When user inputs text to "text1" I want to reflect changes in "text2". When value is changed in "text2" I want to change value in "text3". So I handle keyup event in "text1" and then successfully update "text2". But which event need to be handled when value of "text2" is changed?
Important remarks:1. I don't want to update "text3" from "text1".keyup event. My goal is to handle some event when value in "text2" is changed(may be by user or may be by code)2. "text3" needs to be changed immediately after "text2".value changed
i'm building a website at the moment with a user registration form. something i struggle with everytime is the best way to give feedback to the user (e.g. further instructions for a particular field or error messages).I saw a very nice execution of this recently at this site. /user/register - this looks to be a custom job, but i'm curious is the open-source or even paid plugins that do a similar thing.
I am working on a project that requires me to insert info in input boxes (2 input boxes to be specific, firstname, and last name are the two) and transfer that info into a <select> field when the button is clicked. So, let's say in the first input box which is first name I type Tom and in the second input box which is last name I type Smith. When I click the button I want the first and last name to appear in the select field as an option. Now, i tried researching about adding/removing options for the select field, but nothing on getting info from input boxes to put it as an option in <select>.
I have an array of input text boxes (txtDOBn) where n is created at load. On the onchange event I want to calc the age and show in adjacent input text boxes that are readonly and also arrays (an age calced for each DOB entered). I was going to use the datediff function in vbscript to do the calc. Code: