I have some problems with a page. This page has one drop down list and two listboxes. When the user selects a value in the drop down the form is posted back to the server and the first listbox is filled.
When the user click a button, the selected value in the firts listbox is copied to the second listbox, using JavaScript. I do it this way so the form is not posted each time the user selects a value. So far eveything is Ok.
The problem that I have is that each time the form is posted back (the user selects a new value in the drop down list), the values in the second listbox are cleared. What can I do to keep those values through posts? Here is the most significant code:
I have three listboxes 1 : company 2 : department 3 : function
I want the following functionality. when i choose a company all the available departments in that company must appear in listbox2 and when i choose a department all the available functions must appear. how can i do this with Java?
OK, I have here a great peice of coding to populate a listbox from the database. It works great, but for one thing. i can't seem to figure out how to populate 3 listboxes from 3 different tables in the database. Here's the code that works with one listbox. Can anyone please give some assistance with poplating 3 of them? Code:
I have a dropdown box that I list options in. I get these from an array that I created on the server side. When the user selects an item, this runs code to select the next level of items from the array. I clear the list options and reload the list with the next level and so on. The only problem that I have with this is that I have to have added enought <OPTION> slots to accomodate the longest list that I expect to generate because I don't know how to delete the former list of options then additems dynamically. My preference is VBScript but will resort to JScript if there's no other way
I've only recently begun using asp so i'm not that good, but my problem is this: The navigation for my site is within an include file. However I have an inlcude navigation file for each section but the only thing that changes from file to file is the name of the section you are in, this seems a bit un-necessary.I.e contact, home, about us etc. Is there a way I can use asp to write the name of the section and so only need one navigation include file?
I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first drop down chosed. And I have a submite button to submit all these values to DB.
First problem: I cant keep the value of the selected text in the first drop down. It always goes back to the first value. (but the asp site extension changes accordingly).
Second problem: when the value of second drop down is updated, then the text I inserted in those text boxes, and the checkboxes i checked disappears!
I know its because the site is submitted again to update the second drop down. But how could I keep the values of other elements even though the drop down is updated?
you must have heard this a 100 times.. but how do i fill a dropdown box dynamically based on the value selected in another dropdown box from a database?
I am developing a webapplication for a company holding stocks for a number of customer companies. The customers can order parts via this new appliction. My application is linked to each of the customers' home pages.
I want each user to 'believe' he still is in his company's pages by changing logo and i.e. backcolor depending on company. A person from company A will see his company's logo and colors and a person from company B will simultanously see his company's logo and colors. Can I achieve this with css. In that case How? Or is there another better method.
Is there a way that I can display certain text within an asp file dependant on the url? This is what I am trying to do:
In default.asp, if the url is default.asp?VariableHere, then the body of default.asp contains an include calling "VariableHere.inc" (replace VariableHere with the name of the include)
I need to populate a list box with values that will be determined by the selection of another list. What it is, is when we add a user, they get added to a city, eg Townsville and then there are a heap of groups that only apply to Townsville people.
So once I select Townsville as the location, I want to perform a search in AD and return the list of groups in the Townsville OU.
I am not exactly sure of the appropriate method to handle this in asp. If necessary, I could make a third page and just pass values to that from the second page. Is there a better way?
In case you are wondering, there are currently two pages. One is for use by supervisors/managers, and they fill out some details which get put into a URL that is emailed to the administrators.
Clicking on the link fills out the base form for the admin people, but I want them to have more access and to see more than the managers/supervisors that are submitting the request.
How do I make a dependant drop box? For example, when a user selects Item5 on the first drop menu the second one populates with the options for Item5? I know it will probably use Java of some sort but I do not know the code.
whether anyone had any knowledge of the use of dependant drop downs? For example i would like to choose a product based on the type i.e computer hardware, monitor etc then a list of all products of the same type be displayed in a following dropdown.
Any examples of similar things done, urls to try, your own experience? How simple is it to implement?
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:
I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code: