Member Avatar

Hi to everyone, i am trying to display certain data onto some labels depending on the selection the user does from a combobox. The database consists of two tables, RegisterShipment and Shipments, where the RegisterShipmentID is linked to the Shipment Table by a Foreign Key. On the form i have a combobox and 4 labels, were the comboBox is loaded from the RegShipment table with the following Code dvShipmentNo.Table = mySQL.LoadRegister() cboShipmentNo.DataSource = dvShipmentNo cboShipmentNo.DisplayMember = "ConsignmentNo" cboShipmentNo.ValueMember = "RegShipmentID" The following Code is what i am using from the Combobox event to display the data in the labels Private …

Member Avatar
+0 forum 2
Member Avatar

In vb. Net application i have a combobox with properties- custome source autocomplete Dropdownstyle- dropdown I use string method to autocomplete combobox from custom source of database. I want to cleat text from the combobox after save button event. I use following code for that but its not working. Combobox.selectedindex=-1

Member Avatar
+0 forum 4
Member Avatar

Hi, I'm a total hack with jquery and need some help. I've an html select list and a text area. The select has about 25 options in it. When a specific option is selected, I'd like to populate the text area with some text. Example: HTML: <label for="comments">Technician Comments: </label><textarea name="comments" id="comments"></textarea><br /> <label for="updated_status">Status: </label> <select name="updated_status" id="updated_status"> <option value="Select Status" selected="selected">Select Status</option> <option value="Awaiting Drive from Customer">Awaiting Drive from Customer</option> <option value="Received">Received</option> <option value="DR Received">DR Received</option> <option value="In Progress">In Progress</option> <option value="DR Tech Notes (Internal Only)">DR Tech Notes (Internal Only)</option> <option value="Parts Required">Parts Required</option> <option value="Sourcing Parts">Sourcing Parts</option> …

Member Avatar
+0 forum 2
Member Avatar

Good afternoon to all i am currently working on a logistics project, where in one of the forms the user needs to select a shipment number and other information related to the shipment. the form is made up of 4 dropdowns a textbox and a gridview as follows. **The Dropdowns are a follows* Shipment No - display the shipment number which was entered from a previous form and is saved in a database table named dbo.ShipmentNumbers Client - lists all the clients names which are found in the dbo.Client table Brand - lists all the Brand names which are found …

Member Avatar
+0 forum 1
Member Avatar

I wasnt sure exactly what forum to put this in so i choose PHP since WordPress is made with PHP. I'm looking to have a video player on my website. Playlist so to speak but I also want "speed control" of the videos like youtube has. When the "speed" of the videos are changed i dont want it to affect the playback. I attached two images to show what as an example. It seems the songs change when the speed is increased or decreated but the playback isnt affected. There is also a dropdown menu that changes the channels, but …

Member Avatar
+0 forum 5
Member Avatar

I want to show my custom control(eg: `monthcalendar`) as a drop-down (popup) window. One option is to use `ToolStripDropDown` and `ToolStripControlHost` as the second example in [msdn sample](https://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripdropdown(v=vs.110).aspx). Is it recommended to use ToolStripDropDown for controls other than the ToolStrip items ?

Member Avatar
+0 forum 2
Member Avatar

I have used one dropdown and three panels. Three panels are inside the updatepanel and the dropdown list is outside the updatepanel. I have initially hide the panels. I want to make one of the panels visible as per the selected item in the dropdownlist. The problem is when I change selection in the dropdownlist, the seletcedIndexChanged event fires, but the selected index remains -1 every time. I have set Autopostback = true in .aspx file. Following is the code. <asp:DropDownList ID="ddlReportType" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlReportType_SelectedIndexChanged" > <asp:ListItem Selected="True">-- Select which data you want to enter --</asp:ListItem> <asp:ListItem Value="Salse" Text="Salse">Salse Reports</asp:ListItem> …

Member Avatar
+0 forum 2
Member Avatar

Hello, I have created a dropdown lists using javascript dynamically. But i am not able to get the selected option values of that dropdown lists. could anyone please help.

Member Avatar
+0 forum 3
Member Avatar

Hi, I tried to create four dropdown lists as main category and sub categories which depends on the above list I tried to run it on my local host and it works fine but when i want to insert the value of the second list in my database it doesn't work I did my coding based on the link below. [Click Here](http://www.sourcecodester.com/tutorials/php/5568/creating-dependent-dropdown-list-php-jquery-and-ajax.html) This is my main code that im working on: That part has to take the value from the database for each changement by calling loadsubcat.php $(document).ready(function() { $("#parent_cat").change(function() { $(this).after('<div id="loader"><img src="img/loading.gif" alt="loading subcategory" /></div>'); $.get('loadsubcat.php?parent_cat=' + $(this).val(), …

Member Avatar
+0 forum 5
Member Avatar

https://jsfiddle.net/chintu/wmv1jkh9/ Here is the link of code in jsfiddle. I want to add dropdown menu to the furniture and fumehood section in this dropdown menu.

+0 forum 0
Member Avatar

Hello, I have this navigation bar. I wonder why people have to "click" the portfolio tab in order for the dropdown navigation appears. Is there any way for others people enough just to "hover" the porfolio nav bar then the dropdown box automatically appears? nav.php <link rel="stylesheet" type="text/css" href="css/nav.css"> <div id="navigation"></div> <div id="navcontainerbar"> <!-- <nav> HTML 5 --> <ul> <div style="margin: -85px 0 0 -210px; position: absolute;"><li><a href="index.php">HOME</a></li></div> <div style="margin: -85px 0 0 -180px; position: absolute;"><li class="service"><a href="about.php">ABOUT</a></li></div> <li> <ul id="nav"> <li><a class="fly" href="portfolio.php">PORTFOLIO</a> <ul class="dd"> <li><a href="portfolio.php">Portfolio1</a></li> <li><a href="portfolio3.php">Portfolio2</a></li> </ul> </li> </ul> </li> <div style="margin: -85px 0 0 270px; …

Member Avatar
+0 forum 4
Member Avatar

[Click Here](http://dev.appcotech.com/pwrdup/static/become-postie.php)[1] UnderConstruction please go to upper link and click on SIGNUP TO DRIVE (Blue cruve Button) there will be a tab open type `london` (Not From Drop Down) only just type `london` and hit enter page will redirect to dev.appcotech.com/pwrdup/static/become-postie-vehicle.php page (This mean post keyword matched 100% with database) than come back to previous page and again type `london` now this time from Dropdown menu you will find `London, United Kingdom`,and hit enter. They are same city but my database have only keyword `london`.so page will redirect to dev.appcotech.com/pwrdup/static/city-unavailables.php This mean result not matched 100% I want to match …

Member Avatar
+0 forum 1
Member Avatar

Hello, I wanted this in chronoform, to select timezone and then check for the time. I hav eprovided calendar below, but now I need to show timezones there. I am not getting this on google even. Does any master have idea about this?

Member Avatar
+0 forum 1
Member Avatar

Hello, I have a file like below that contains datewise value for every hour for 2 locations. I need to add the value for the same hours for ServerA and ServerB. Using Hashes, I am able to add the server value per hour. But cannot pass it to a table. I am selecting "Loc" via a dropdown to use a switch to select the data. Input File: Loc Date TYPE Server Hour Val EMEA 1-Sep TYPE-A Server-A 00 4 EMEA 1-Sep TYPE-A Server-B 00 4 EMEA 1-Sep TYPE-A Server-A 01 5 EMEA 1-Sep TYPE-A Server-B 01 5 EMEA 1-Sep TYPE-A …

Member Avatar
+0 forum 19
Member Avatar

Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet no luck. I hope you can help me.. heres my code //HTML i have a dropdown and a textbox for input of the keyword <table id="filterContainer"> <tr> <td> Filter By: <asp:DropDownList ID="DropDownList3" name="filter" runat="server" > <asp:listitem text="Please Select.." value=""></asp:listitem> <asp:listitem text="Id" value="id"></asp:listitem> <asp:listitem text="Program Title" value="title"></asp:listitem> <asp:listitem text="Customer Name" value="name"></asp:listitem> …

Member Avatar
+0 forum 7
Member Avatar

I have been trying to do this code from past two days. The problem is i have a select box which i have 4 options. And i have to create select boxes with 3 options each for all the options of main select box dynamically using javascript. But the problem is i have kept an add option button with text box for main select box. I have struck there. How can i create a select box using user entered add option? Any help in the form of code is really appreciated.

Member Avatar
+0 forum 3
Member Avatar

Hello, I hope that I can get an answer for this question. I have a MYSQL table for charges which contains the following fields: ChargesID, ChargesTitle, OfficialFees and ProfessionalFees. What I need is to make a dropdown list which contain ChargesTitle and upon selection to autofill the OfficialFees and ProfessionalFees. I found the following jquery script and is working fine with a static data only. Any idea to change or update the script to work with php and dynamic data from MYSQL. <select id="Charges"> <option value="">Please Select</option> <option value="1" data-officialcharges="100" data-professionalcharges="30" >Option 1</option> <option value="2" data-officialcharges="200" data-professionalcharges="40" >Option 2</option> <option …

Member Avatar
+0 forum 3
Member Avatar

Do you know if it's possible to retrieve data from a dropdown list using bootbox? I'm at home so I don't have my code to post. Thanks.

+0 forum 0
Member Avatar

Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student whre status='0'")or die(mysql_error()); $b=mysql_num_rows($a); if($b >0) { while($row=mysql_fetch_array($a)) { ?> <option value="<?php echo $row['st_id']?>"><?php echo $row['name'] ?></option> <?php } } ?> </select> This is my dynamic select box code for insert , I don`t know how to edit? Can any one tell me?

Member Avatar
+0 forum 2
Member Avatar

This is not my code/script all hardwork came from Codelair Full script located [here](http://doheth.co.uk/codelair/php-mysql/scoreboard) I really hope i posted this in the correct section because im unsure which code will work best for this. As the name for the script gives this away it is a scoreboard. allows admin to create questions and users to answer them with write in text field. so i was just messing around with this and am trying to have dropdown value to text field. as i can get this to work with the first question by asigning an id to the input type $HTML …

+0 forum 0
Member Avatar

Hi, I have a menu strip with a dropdown in which the user can select (check/uncheck) from a list of 6 options. Slightly annoying feature is that after the user checks one item, the dropdown closes so they then have to click the menu to open the dropdown before they can make their next selection. I have got round this by setting `menustrip1.dropdown.autoclose = false` when the dropdown opens, so the user can check/uncheck from the list as required. The next problem is that the menu dropdown now doesn't close at all once it has been opened. I have been …

Member Avatar
+0 forum 1
Member Avatar

> while updating my form it retrieves all info from db in respective field but unable to display values in dropdowns > this is my controller for update function update($a_id) { $data['a_id'] = $a_id; $data['sector'] = $this->sf_model->get_sector(); $data['subsector'] = $this->sf_model->get_subsector(); $data['type'] = $this->sf_model->get_type(); $data['view'] = $this->sf_model->get_account_record($a_id); $this->form_validation->set_rules('a_name', 'Account Name', 'trim|required|xss_clean|callback_alpha_only_space'); $this->form_validation->set_rules('a_web', 'Website', 'trim|required|xss_clean'); if ($this->form_validation->run() == FALSE) { $this->load->view('viewUpdate', $data); } else { $data = array( 'a_id' => $this->input->post('a_id'), 'a_name' => $this->input->post('a_name'), 'a_website' => $this->input->post('a_web'), 't_id' => $this->input->post('a_type'), 's_id' => $this->input->post('a_sector'), 'ss_id' => $this->input->post('a_subsector'), 'a_billingStreet' => $this->input->post('a_billingStreet'), 'a_billingCountry' => $this->input->post('a_billingCountry'), 'a_mobile' => $this->input->post('a_mobile'), ); $this->db->where('a_id', $_POST['a_id']); $this->db->update('account_info', $data); $this->session->set_flashdata('msg','<div class="alert …

Member Avatar
+0 forum 1
Member Avatar

I would like to create a series dropdown boxes, each containing the same listing content. However, when one option is selected from the preceeding dropdownbox, that element is removed from the remaining boxes. I would like this process to continue until all selection have been selected. 1 <select name="box1"> <option>value 1</option> <option>value 2</option><!--if this is selected--> <option>value 3</option> </select> 2 <select name="box2"> <option>value 1</option><!--if this is selected--> <option>value 2</option><!--NOT SELECTABLE--> <option>value 3</option> </select> 3 <select name="box3"> <option>value 1</option><!--NOT SELECTABLE--> <option>value 2</option><!--NOT SELECTABLE--> <option>value 3</option> <!--The ONLY SELECTABLE OPTION--> </select> ANy thoughts on how this can achieved?

Member Avatar
+0 forum 2
Member Avatar

Hi I would like to ask. I have one dropdown list control. What are the different between this 3 in dropdown list. 1. Dropdownlist.SelectedValue 2. Dropdownlist.SelectedIndex 3. Dropdownlist.SelectedItem Thank you :)

Member Avatar
+0 forum 2
Member Avatar

Hi i am a beginner in PHP Ajax. i found this code but i want to know how to start to display the table after i select the value from dropdown list. I am also a bit slow in this. All example i have found are only show how to display the table from 1 dropdown list only. Thank you in Advance. here is the code. this is ajax-dd3.php <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title></title> <META NAME="DESCRIPTION" CONTENT=""> <META NAME="KEYWORDS" CONTENT=""> <script type="text/javascript"> function ajaxFunction(choice) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); …

Member Avatar
+0 forum 3
Member Avatar

how to create a dropdown menu relatate with php. that means select a division and then a district and a thana

Member Avatar
+0 forum 2
Member Avatar

Hello, I have two mysql tables, the first one for salutation (salutationId, SalutationTitle) and the second one for clients (Id, FirstName, LastName, salutationId) . I can do the dropdown list from salutation which contais (Mr., Ms. ...etc) in a regitration form and insert the data to mysql without problem. Here is the code for the dropdown: <form action="" method="post"> <div class="modal-body"> <div class="row"> <div class="col-md-5"> <div class="form-group"> <label for="salutationId"><?php echo $SalutationName; ?></label> <select class="form-control" name="salutationId"> <?php // Get the Salutation List $sqlStmt = "SELECT salutationId, SalutationTitle FROM salutations"; $results = mysqli_query($mysqli, $sqlStmt) or die('-2'.mysqli_error()); ?> <option value="..."><?php echo $selectOption; ?></option> …

Member Avatar
+0 forum 1
Member Avatar

Hello, I have created a select product using a different way like frst we select product from dropdown and click on next button on next page the dropdown have to show the company names i.e only that companies which belongs to the selected product but i am bit confused how it will work i tried to use v_id like company id but its not working can anyone help me out. Database structure CREATE TABLE IF NOT EXISTS `products` ( `prod_id` int(11) NOT NULL AUTO_INCREMENT, `product_name` varchar(255) NOT NULL, `product_price` int(20) NOT NULL, `prod_details` text NOT NULL, `v_id` int(11) NOT NULL, …

Member Avatar
+0 forum 3
Member Avatar

Hai, Am try to create a autocomplete in my project it was not fix it in particular place so many struggle to make it,Hope you people might give any idea to do it on right way.I need a code in this format like when user enter a value it take to db search and return back to dropdown box that will perform on search and dropdown option list. Advance thank to DANIWEB forums members.

Member Avatar
+0 forum 1
Member Avatar

Hi , i hv created 2 tables : a Department table with fields Deptname , Deptid and Employee table with Empid , Empname, Salary . I have created a datagrid with fields empname , address , Salary , Deptname and edit and delete command columns . By clicking on edit , it redirects to another form with 3 textboxes ( name , address , salary) and a dropdownlist with department names and update button .So data will get edited and updated after clicking on update button . I have binded the dropdownlist with values from database . I have used …

Member Avatar
+0 forum 1

The End.