Filing Text Boxes
I have a select list which retrieves the values of a field from a database. I also have
some text fields which I would like to fill with data from other fields in the same
table which are associated with the selected item in the list. I can't seem to figure out
a way to fill the text boxes with the values from the DB in the OnChange procedure of
the select list. Does anyone know how I might go about this, or if it is even possible?
View Replies
ADVERTISEMENT
code:
If request("bMarketTypes") <> "" AND request("bMarketArea") <> "" Then
Response.Write "types and area<br />"
Elseif request("bMarketArea") <> "" Then
Response.Write "area<br />"
Elseif request("bMarketTypes") <> "" Then
Response.Write "types<br />"
End If
I have two text boxes,so the possible combination both are checked,OR one is checked and the other isn't, or vice versa.Why won't this code work then?
View Replies
View Related
I have a text box that i need to check for illegal characters. I only want to have 2 numbers allowed in them, with no letters or ( . , ' ; / ? [ etc.
how could i read the input to a string and check each character entered one by one?
View Replies
View Related
ok i need to get the text from an option box? i know you can do it with java script but it would make my life a lot easier if you can get it using asp. don't know if there is a method out there or what. any ideas?
View Replies
View Related
I have a form and some of the text boxes are being filled in from a search from another form. Go to this link to see the code for the form page: Code:
I want the user to see the info in the first four text boxes that are populated by the database and I want this info. to be submitted with this form, but I don't want them to be able to change or edit the info. in these populated boxes. Just want them to fill out the rest of the unpopulated boxes.
This form submits to an asp page that processes the form data and sends it to an email. how can i do this?
View Replies
View Related
i have been asked to create text boxes dynamically on a web site, the user can click a button and a new set of text boxes will appear. The user can add as many boxes as many times as he wants, I have created the text boxes already using the following code.
function inserttextboxs() {
var tab = document.getElementById("Difference")
var tr = tab.insertRow()
var tc = tr.insertCell("") tc.innerHTML = '< input type=text id=text1 name=text1>';
}
The problem is I don't if this how I should be doing it when I submit the form all the elements have the same id, I need to create something with unique id's so I can retrieve the different values
View Replies
View Related
how do get dynamic content to a drop down text box from a db. For example:
There are two drop down boxes. First one continents Second one countries.
The user selects content from the first drop down box and using the onChange javascript function the data on the second drop down should show the countries related with that content.
View Replies
View Related
I need help on this ASAP. I have to deliver this in another 3 days. There is a ASP page that has 4 text boxes. In the 1st one, I will enter a value. based on this value I enter in the text box, the other 3 text boxes should be filled in automatically. These values for the other 3 text boxes should be retrieved from a SQL Server 200 database based on the value in the 1st text box.
View Replies
View Related
I need advise as to how to do the following. In a asp page, the user can input
information via text boxes which goes to a database. If users click a check
box named final and submit the asp page, then next time they come, they will
not be able to change any information.
This means, I would like to grey out the text boxes so that users are unable to edit the values in the text boxes. The only way to allow edit is via adminstrator's intervention.
View Replies
View Related
In a form I'm creating several asp text boxes for user input. When I look at these in IE or Firefox one or two are coloured yellow with a border, whereas the rest are the normal white with a thin blue border.
There is nothing I can see in the code that does this, and with a bit of testing I can force this condition by adding text outside the text box. Very weird. Has anybody seen this behaviour before. I'm using Dreamweaver MX 2004, but I'm feeling it's not DW at fault here.
View Replies
View Related
I need some ideas in this if you can please help me.The folllowing is the scenerio:
I have a form which is the normal html with some validations and scripting done in javascript and i have a text box by name ticket no when the user enters a ticket no which exists in my database I need to update all my other form textboxes and textboxes with the data in the database else I need to show a alert that this doent exist in the database.
usually the event handling is done in javascript but now i have to call server side connection I have no clue how to do this.
View Replies
View Related
The user can search the database when they put in a date, that works fine, but when i put in another text box to search the database for a certain date range Code:
View Replies
View Related
I'm using ASP 3.0,IIS and Java script.I have created some text boxes Dynamically using java script.So the text boxes has got the same name. This is the code i'm using for that..
aTable1=document.all('myTableTBody1')
aRow1 = aTable1.insertRow(aTable1.rows.length);
aRow =aRow1
aCell = aRow.insertCell(0);
aCell.align = "Left";
aCell.width = "5%";
aCell.innerHTML = "<input type='text' name='Course' size='20'>";
Problem is that when i'm doing client side validation using javascript its not taking values..Here 2 or 3 or 4 text boxes with the course will be created when i use
this code:
if (document.Qualificationdetails.Course.value == "") {
window.alert ("Enter Course !");
document.Qualificationdetails.Course.focus();
return false;
}
it does not give any validation...
View Replies
View Related
I am having trouble with the ordering page. I would like a dynamic form list to look at a database and when the user selects a product code, the text boxes containing description and price change too to reflect the product code.
The user will be entering in their contact details, so I dont want the page to reload too because I will lose that info. Code:
View Replies
View Related
I am currently making a form in asp and when i make the text boxes they are all formatted to the same size, even if I use the width=*** to change the size? Is there another way to make the input text boxes smaller or bigger?
View Replies
View Related
I have a form that will add a device to a database. What I am having a problem with is that I have two drop down boxes. One is a building number and the other one is a room name. Because there are many room names that are the same in many of the buildings and some room names that are not in all of the buildings, I have created a table called buildings and another table called rooms.
I have a drop down menu that displays all the building numbers and what I want to be able to do is when I select the specific building number, another dropdown box appears showing all the room names for that specific building. I also what to be able to keep the information already on the form intact. As an example, a user puts in information on the form such as the machine name, username and then selected a building name, which would then show the rooms in that specific building, maintaining the information of the machine name and username on the form. There are seven items on the form, which the user must include prior to submission of the form.
View Replies
View Related
I am trying to create a database submition type interface which is dependant on the selection of three check boxes. The form contents will always be the same type of information;;; name address etc. The user must decide which db to write their details to.. So if check box one is selected then it writes to database a. If the other two are individually selected then the script will write the form details to another database b and c. If all three are selected then the script will write to all three databases a b and c .
Is it as simple as creating three connection strings and assigning them to variables
View Replies
View Related
I am in the process of writing a website which has an access database
and uses asp to access it. Part of the site is a search facility. I
have heard that it is possible for hackers to gain access to the
database by entering SQL in to the search box. First of all is this
possible? Secondly if it is possible, what sort of syntax should i be
checking for on the text entered in to the search field
View Replies
View Related
Does anyone know if there is a way to select an item in a select box by
typing the beginning of the word and it finds it in the list?
As an example:
Say I want to go to the item named "M1234" in the list.
When I type M it goes to the first "M" item.
When I type 1 it goes to the first "1" item.
Is there a way to make it go to the first "M1" item instead of jumping back
to the "1" item?
Is it even possible to do this in classic ASP?
View Replies
View Related
I have 4 tables in my db which represent an county split up:
1 County split into 3 Divisions split into 2 Districts split into 10 Section
I have a query which pulls all the tables together to show every Section, its district, division, and county. Obviously, each Section only appears once each District 20 times and so on.I want to have 4 select boxes on my page which represent the break down:
county > division > district > Section
This is to enable a user, from any page, to filter the content of that page by whatever breakdown they wish.The question is how best to populate the 4 select boxes (well 3, county only has one option!)? I could have 4 queries on my page (4 hits to the db!), have one query and filter for each select box etc
View Replies
View Related
When I write code to populate a dropdown box with all fields from a column in a table, it populates all but the first record. And then automatically sets this missing record as the record to be sent, no matter which record I select. Has anyone seen this issue before.
View Replies
View Related
Is there anyway to do a message box in asp with vbscript to make an alert box appear like in javascript.
View Replies
View Related
I would like to create a page with VBscript and ASP which will contain two list-boxes one in the left side and the other in the right side with two buttons namely "Add>>" and "<<Remove" so that if the user selects a value listed in the left side list-box and presses "Add>>" then that selected value should go inside the right side list-box.
Similarly if the user selects a value listed in the right side list-box and after clicking "<<Remove" then that selected value should go back to the left side list-box.
provide me the code?
View Replies
View Related
how the information boxes pop up when you mouse over a link? For instance in this forum, when you mouse over the Title of the thread, an information box pops up with the entire message. I assume that is Javascript, but does anyone know where I can find more information on this?
View Replies
View Related
I am setting up an ASP page using a combo box ...
Request: ... The user select a date from the pull down list and on
selection of that date another box or window will populate with the
corresponding data from that same record in the database..
I guess I am looking for an "On Selection event" type feature
Something that will cause an event to happen based on the selection
from the combo box and not have the user to press enter to get the
corresponding results.
View Replies
View Related
Say i have a table with check boxes for every row. I would like to have a feature where when the user clicks the checkbox the column background color changes like the one in hotmail and yahoo mail.
View Replies
View Related
I have been looking through the forum trying to find an example but with no luck! I have three drop down boxes for displaying a date i.e. day, month, year. I have an edit page which I want to allow the user to update their details. When the choose to edit their page the date stored in the database is split into the three values i.e. day, month, year.
I want to set the selected property for each of the three drop downs boxes based on the date already stored. My question is "Is this possible?" or do I just have to display the dropdowns with default values selected i.e. 1 Jan 1970.
View Replies
View Related
I have two forms on one page. Form A only has a list box, lbox1, in it that is pulling its values via a stored procedure. Form B has a bunch of other stuff on it. What I want to do is hide Form B until a value is selected in lbox1. How do I accomplish this?
View Replies
View Related
I have a form, all the drop down boxes are populated from fields in tables in a database ive made. This part is working fine. The fields are for IT components and each one has a price in a seperate field.
Im trying to store the price to a session when the user selects. When the page loads and the drop down lists are populated I am loading the price values in also but not displaying them. So far my code for it is this: Code:
View Replies
View Related
I am creating a search form on my website. The user will be able to search via zip code, county or state. If the user selects the state option from the drop down box, I would like another dropdown box to appear on the page with all the states listed. I think you have to use javascript but i'm not sure.
View Replies
View Related
I have this form which the user will fill online.Now the form has 3 checkboxes giving a user the option of selecting which person/persons out of the three listed should get the form email when he hits submits.
So the form has three checkboxes and each checkbox will have a name of a person next to it.The user just needs to check it (one name or all names out of three) and after he hits enters a mail shud go to the respective selected people.I was thinking of using CDONTS to send mail..but i cant figure out how i shud do it with this mutliple checkbox scenrio?
View Replies
View Related
im looking at populating a drop down box with database values when a user selects a value from another drop down box.I have a drop down list that populates from database values, it is a list of manufactures. When a user selects a manufacture i want it to display all the systems for that manufacture which will be stored in a table. I understand that because asp is server side that once an option is selected the page would have to submit and then load the values in.
View Replies
View Related
I have a asp page that I am trying to use Javascript to validate wether or not a value is selected. I have two check boxes on a form, cbx1 and cbx2. I only want to throw an error if both of them are left unchecked. Here is what I have: Code:
if ((cbx1.value!=1)&&(cbx2.value!=1)){
alert("Please Choose How We Should Contact You")
return false
}
however, this always throws the error, even if one is =1. I thought that the And comparison for JS would only run if both arguments were true.
View Replies
View Related