Using A Dynamic Dropdown To Initiate An Action
I have a dynamic dropdown list that has info brought in from my SQL database. Based on the user's selection, I want to create a message box that informs a user that an additional step must be taken first before the form can be submitted. For instance:
Drop down list contents -
Estimate
Repair
Maintenance
Renovation
New Build
If a user selects "New Build" from the dynamic drop down, a messgae box would appear to let the user know that they need to have a permission form filled out before they can submit the work order. Something to that affect. Can this be done based on a selection in the list or do I need to use check boxes instead.
View Replies
ADVERTISEMENT
What I want is for an action to be triggered when a user selects something on a dropdown box.
The something would actually be two variables. One 'static' in that the drop down would be 1, 2, 3, 4 the other being a variable in the true sense e.g. if selection A is 2 and selection B was 3 then the variable is 5 and this variable is the one I want to use to trigger events.
Using themes I could maybe do it but I am hoping there is a easier, more dynamic way to do it.
View Replies
View Related
I have a table called tblParts. The are 3 fields: PartID, PartNumber and Price. I have a dropdown box on my ASP page that is dynamically populated with PartNumbers from the database.
I have a text field for the price. I want it when the user selects a part number from the dropdown to display the correct price in the textbox for that part. I "DO NOT" want the page to reload.
View Replies
View Related
I want to create a system of dynamic dropdowns for a site I'm working on.To add an entry a user first has to select a Category which then populates the Subcategory dropdown which inturn populates the Subsubcategory dropdown.
An example can be viewed on the Nvidia and ATI sites when you download drivers.
View Replies
View Related
is hard or easy to create a dynamic dropdown?I have sorted my previous query with the array and now i want to perform a dynamic dropdown from one of the options given in the first?
View Replies
View Related
i want to make two dynamic dropdown lists that get data from sql server database using classic asp.when user select a value from dropdown list1 (country) the values in dropdown list2 (city) should automatically be changed.in the database the relation is one to many (country table with city table).
View Replies
View Related
i have form on asp page that recalls data from the recordset and populates all fields except the dynamic dropdown box that doesn't, just shows default value. How do I make it populate based on the entry in the db?
View Replies
View Related
I'm trying to build a asp dynamic list were you can select a option in the first list and depeding on that value the second list will change to match. For instance I choose a customer in the first list, the second list then has to give all the codes from that customer. The list is variabel, as the value;s are from a database.
If tried some stuff with ASP and Javascript, but the page reloads after selecting one option, but because it reloads, it delete's the text that is written in the rest of the form.
View Replies
View Related
Does anyone have a snippet to hand where i can create a dynamic dropdown for a credit card page, basically i need to dynamically create a drop-down populated with this year as 2006 and go back 4 years?
View Replies
View Related
just a quick question that I need to now the answer to before I try is it possible to create a dynamic dropdown menu containing values that are not stored in your database.
Ok so I'm working on a schedualer that searches for time slots that are not free and displays these vaues if they are not contained in the database Quick example:
1st sept 10:00 taken
1st sept 11:00 free
but 1st sept 11:00 free will not be stored in the database therefore the dynamic dropdown will not be populated from a recordset.
View Replies
View Related
I have found in the forum examples or 2 dropdown lists and 3 dropdown list. Does anyone have any idea how to do 4 or more dropdown list? I tried to modify it from an example script found here but failed. Code:
View Replies
View Related
I have a dropdown that is dynamically populated. The value = a numeric code which I save in the DB. The text = the description. I know how to get the value of the selected item but I need the text of the selected item. I know how to do this in javascript but where I need to gather the text is during an ASP routine.
How do you get the text portion of a dropdown? I saw one post where you can add the numeric code and description together and then use split() to seperate them. I'd rather not do it this way. Is there another way?
View Replies
View Related
I want to have dependent dynamic dropdown lists where the person can select the state, then county, then zip code, and all 3 of these menus will be populated by a database. I have a page that Ive been working on but I just cant get it. The page I am working on also refreshes when you select the state, then when you select the county it refreshes again but instead of populating the zipcode list it just takes the state name and inserts it into the city menu. Code:
View Replies
View Related
I have a dynamic drop down menu created from an Access 97 database. The munu contains numbered indexes. Is there a way to have Index 10 displayed after Index 9 instead of after Index 1.
View Replies
View Related
i have three dependent dropdown list.when select city in first box then 2nd list will show all company for selected city. 3rd will show all jobs of co. any suggestion?
View Replies
View Related
I've been pulling my hair out over this. I've been looking at it so long I'm probably just not seeing it. I'm trying to populate a dropdown list based on a user's leagueID contained in a Access database. Here's my code:
View Replies
View Related
I have a page pulling some data from an MS Access DB, one of my columns is a "Application" column.
I have a dynamic dropdown pulling various Application names from a separate "Application" table in my DB. What I'd like to do now is to be able to select one specific Application from that dropdown and click the GO button to have it only show records with that Application name in them. Code:
View Replies
View Related
I've been farting around with trying to make some dropdown boxes populate based on the value selected from the first drop down box..
I have 3 DropDowns..
1)PumpType
2)PumpMfg
3)PumpModel
the first one takes all the pump types from a database table called pumptypes and populates it
the second dropdown gets its values from an sql query to a second database table called pumpdata that puts all the manufacturers that have that have a pump that matches the type selected in the first dropdown.
the third box does essentially the same thing but looks for all the models based on the values of the first 2 dropdowns..
whats happening is when I select the pump type it goes to the next page without allowing me to select the other 2 boxes.
heres the code I have .....
View Replies
View Related
I downloaded your "A Beginner's Guide to CDOSYS" article I
displayed the Sample1.htm page with the IE6 within
a web folder. The page display perfectly. I filledin the
e-mail info and clicked send. All worked without any error
message. I destination e-mail address never received
the mail. Do I need to setup IIS 5 first? Register it
somehow. Please advise. I'm anxious to use this built
in component.
My ISP is Comcast. My OS is Windows 2000 server Pro.
I setup the MS Outlook for outgoing mail. Outgoing mail
with MS Outlook works fine.
View Replies
View Related
I have a category that I will call "company". in my access DB, there are about 6 or so companies. On another table, I have a list of locations that are related to these companies.
What I want to do, is have a drop down menu that lists all the companies. When you select the company, the second drop down menu will automatically populate with the locations of the company you selected in the first dropdown.
Anyone know any links to some examples of this? My google searches have been pretty fruitless since Im having a bit of a problem trying to explain it concisely (as you probably noticed).
View Replies
View Related
I'm trying to connect to a sql server to write a record , but am getting no results.
See the attched file
View Replies
View Related
I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is: how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one
document.MyForm.action = "save.asp";
document.MyForm.submit();
View Replies
View Related
im trying to get used to asp, as im abit of a php users really. anyway my problem is ive made a database connection and made an update work. only thing is im wondering how one would test if the update was successful so can display to user that it was.
my query ends as
Code:
adoConn.Execute strQuery
so is there away to test if it was successful?.. so i can do if it was var = success else car = error
View Replies
View Related
I have an ASP page with some form elements on it, as well as an inline frame
called 'body'.
Depending on element is selected when the form is submitted different ASP
pages appear in the inline frame.
<form Name=aSelect method=Get action=Test.asp target=body>
<Input type="radio" name="Radio" value=0)
Using this the line passed to the inline frame = Test.asp?Radio=0
I want to add a second inline frame to the page and have a different
page displayed in this. The page to be displayed needs to reference the
selection made in the form. Something like Otherpage.asp?Radio=0
View Replies
View Related
is it possiable in run some automatic checkups on the server every X time or every time (with no reaction with the user). I need to run all the time checkups on the sql database and check values of some column.
View Replies
View Related
Is there any way that I can for example, send an email After a file has been downloaded? Currently, it is setup so when they click to download a file...it sends an email...I am trying to figure out a way to have the email sent only have the download has completed.
View Replies
View Related
I have a system that i designed a while ago that is an online diary system. The way it works is that the users are given the option to click on any day of the month on the main diary screen. This then opens a second browser window using javscript to show the user all of the appointments in this day. All action are then done in this new window.
The proplem that i have is that once the action has been done, it is not highlighted on the main diary screen untill the page is refreshed. Is there any way that i can send a refresh comand back to the original brower screen from within the new javascript opened brower? I have a close window button on the js window so i didn't know if there was some way of adding a command to do it.
View Replies
View Related
I have a form with dropdown boxes and a "Submit" button.These dropdown boxes get populated dynamically with user interaction, like this:
<form method="POST" name="form1" action="MyPage.asp">
<p><select size="1" name="Dropdown1" onchange=form1.submit()>
The "Submit" button is included within the same form.Is there a way to find out which item made the POST action.If it's the Submit button.i want to do this.If it's the dropdown boxes.then i want to do a different thing.
View Replies
View Related
I have this form that updates a database when the submit button is pressed like this
Code:
If Request("submit")="Submit Hotline Form" Then
and I noticed that it works fine when I have the form itself as the action, but when I make another form the action for the form it doesnt update the database. Is there something wrong with my if? or is there a different way to do this? I wanted the second page to display info from the database as values in the input type=text boxes.
View Replies
View Related
Having a problem with a page being skipped in the cart. Intermitting problem here. Action code 38 then 47 when this occurs.
View Replies
View Related
how I can create two different form actions.I'm currently creating a On-Line Order System for our company. I've created a page that displays what they have ordered and the option to update the number of item that would like on there order. so I need to create two different for actions.
What I looking to have is one button that would submit, one button that would update any changes? Two different action.the update button will call proorderbyline.asp the submit will call submitbyline.asp .
View Replies
View Related
Anyone can help me to create a Text Formating. AS I want that there is a object. I want to write some text in a textbox on Run time. and it displays on the object and if i want to change his font,size or color.
so tell me how its possible. can i get tha code from anybody or from anysite or anyone plz me to do this in Flash with Action Scripting.
View Replies
View Related
I have a form that appears in a popupwindow. I found a javascript code that allows me to return to the opener window onClick and it closes the popwindow. The problem is I tried to implement the code into my Form Action and I can't get it to work.
This is the original code:
onClick="return targetopener(this, true)
This is what I'm trying to do:
<form action='return targetopener(<%Response.Write("checkboxtrial2.asp?Model=" & Recordset("model") & "")%>, true)' name="formOptions" method="post">
View Replies
View Related