Getting an empty drop-down list by the following code. Trying to fetch names from the department table. Using an oracle Database... <label for="department">Department</label> <select class="form-control" name="deptname" id="deptname"> <option selected disabled></option> <?php $dbUser = "..."; $dbPass = "..."; $dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=...)(PORT=1521))(CONNECT_DATA=(SID=...)))"; $conn = oci_connect($dbUser, $dbPass, $dbConn); $sql = oci_parse($conn,"SELECT Department1.NAME FROM Department1"); oci_execute($sql, OCI_DEFAULT); ?> <?php while (oci_fetch($sql)) { ?> echo '<option value="<?php echo oci_result($sql, 'NAME')?>"></option> <?php }?> </select>

Member Avatar
+0 forum 0

I have a wx.DatePickerCtrl with the dropdown popup window that allows the user to pick a date from the calendar. What I would l like to have my program do is process an event when the user has clicked on a day in the dropdown calendar. Unfortunately the only native event for this control is EVT_DATE_CHANGED and that event gets fired every time the user scrolls the month/year while looking for the date of their choice (firing the event many more times than I would like). I can't seem to access the popup window that is created below the datepickerctrl …

Member Avatar
Member Avatar
+0 forum 9

I'm attempting to simplify my fundraising page, and would like to show exactly how much each donation would help us out. I've listed the options below, but I would like for the first two dropdown boxes to change the third one depending on the combination chosen. Fruthermore, I'd like for the third dropdown box to adjust the first two if that one is selected. IFFTT, basically. No action needed beyond that, as it's mostly meant for informative purposes. Is this possible? Thanks for any help whatsoever. Examples: 1 donation of $50 = 1 hour of gym time. 10 donations of …

Member Avatar
Member Avatar
+0 forum 3

I am using easyUI datagrid component and I'm trying to add bootstrap dropdown menu in a datagrid cell. The problem is when I click the dropdown button, the menu doesn't show. When moving the menu outside the cell, or remove the cell 'datagrid-cell' class, it works fine. No console errors shown. Here is the current HTML: <div style="height:auto;" class="datagrid-cell undefined"> <div class="select-grid-item-container"> <div class="select-grid-row select-grid-row-item options-active"> <div class="select-grid-options-dropdown"> <span class="select-grid-options" data-toggle="dropdown">Options</span> <ul class="dropdown-menu" role="menu"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#" class="send-email">Send Email</a> </li> </ul> </div> </div> </div> </div> Not sure if you any other details/code. Please do let me know …

Member Avatar
+0 forum 0

i am able to populate data in chain select drop down list but the problem is when page is refreshing selected data is lost how to fix that .. here is the code.. <?php require_once 'include/config.php'; require_once 'include/opendb.php'; ?> <?php if(isset($_POST['model'])){ //This is for the third and final drop down menu. It allows you to submit and go to new page. $link="index.php"; }else{ //This is for the third and final drop down menu. It allows you to submit and go to new page. $link="#"; } ?> <form method="post" action="<?php echo $link;?>" name="admin"> //Straight Forward <select name="value1" onChange="this.form.submit();"> // 1Ste Drop …

Member Avatar
Member Avatar
+0 forum 7

i am implementing dropdown menu in html on hover by using CSS . But the problem arises when i implement it in My Already developed template . I am not getting where it is getting wrong . I have set visibility:hidden and visibility:visible on hover but it is still visible. I am pasting some part of the code which is neccessary for this question . Please help me out . Here is the HTML CODE: <nav id="SA-main-menu" role="navigation"> <ul> <li class="SA-active"><a href="#">Home</a></li> <li class="sub-menu-parent"><a href="#">Products</a> <li class="sub-menu"> <li><a href="#">asdsa</a></li> <li><a href="#">dsad</a></li> <li><a href="#">dasdas</a></li> <li><a href="#">dsadsddaxx</a></li> <li><a href="#">qwer</a></li> <li><a href="#">zxcss</a></li> </li> …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone. Please help me. Select box <select> is not working in phonegap app only on gingerbread. It works on iOS and Adroid ice cream sandwich + jelly bean. I use jquery 1.9.1 and iscroll 4.2.5 and phonegap 2.3.0. Does anyone has any idea why would it work in ics and jb but not in gb?

Member Avatar
Member Avatar
+0 forum 10

Hi, Does anyone know how to have a dropdown appear when typing in a multi line text box? I want it to work in the same way it does in Visual Basic, suggesting what could be inserted based on what the user is typing. Thanks guys, Regards, Luke

Member Avatar
Member Avatar
+0 forum 3

Hi! I'm having troubles with retrieving data without using a button. I want to retrieve the data from the database and wanted to use it in another textbox. I have a list of dropdown button and i want to use OnClickFunction to retrieve the data from another page or directly from the database . is there any tutorials about retrieving data from another page or same page without using a submit button? i googled it and i can't find the right solutions .. any help is much appreciated!! :)

Member Avatar
Member Avatar
+0 forum 1

You have some serious query/caching issues. Times vary but slow nonetheless. Finder -> My Bookmarks Page generated in 26.1996 seconds with 8 database queries and 7 memcached requests using 6.01MB of memory Latest Posts Page generated in 16.5247 seconds with 5 database queries and 6 memcached requests using 4.71MB of memory Latest Post Comments Page generated in 47.6937 seconds with 5 database queries and 32 memcached requests using 4.92MB of memory While posting this to your shoutbox earlier I noticed that my profile dropdown and the finder dropdown aren't working in the shoutbox.

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, Can you please let me know how I can assign the selected value from a dropdown list into a $variable and print or echo it in the screen For Example if I have a dropdown list of years like: [CODE] <?php $years = array(); for ($i = 1900; $i < 2026; $i++) { $years[] = $i; } echo "<select name='Year'>"; foreach($years as $option){ echo "<option value='{$option}'>{$option}</option>"; } echo "</select>"; ?> [/CODE] Now I want to save the selected value in a variable to do any further process? Thanks for your time, in advance.

Member Avatar
Member Avatar
+0 forum 7

I need your help I am using Onchange in a form to submit a dropdown data to the database, but something boring when i select the data the page get refreshed, so if i was down the page then after selecting the page takes me up again before i finish the next stage on my process. So i need the help if anyone knows how can i do to stop that, that when i will select the dropdown data the page should remain without refresh it will be well and good! I think Ajax does this but im not that …

Member Avatar
Member Avatar
+0 forum 6

Hi, thanks in advance foy your time. I have in the past made a inventory site where a user selects from a dropdown what he or she has and saves it but this is a little different... What I'm attempting to do is this... User creates an account (have the ability to do this already) User pulls up a list of items (have database populated with itemid, name, image and url) User is able to input if they have it, need it, or saving to buy it. User then can SAVE their inventory/wishlist so it can be brought back up …

Member Avatar
Member Avatar
+0 forum 3

How can a table be updated in HTML with Dreamweaver using ASP on a dropdown functionality? I can only have the table bring in a table with the pageID of 1 and will not change when dropdown changes. How do I start the programming of getting every record with a specific pageID

Member Avatar
+0 forum 0

I am trying to populate dropdown with database what i am actually trying to do i have 3 drop downs country ,state and city and i want if user select any country crossponding states are shown in dropdown and crossponding cities releated to state are shown in city dropdown.I don't how to achieve this all fields will be saved in tabl_usrs and and i have nm_country,nm_state and nm_city table from where country states and cities are shown in tabl_usrs i have country,state and city field wwhich act as foriegn key?? any links will be welcome.Hope any one can help.below is …

Member Avatar
Member Avatar
+0 forum 2

Hi friends i am trying to display dynamic dropdown using php. but it is not fetching the second dropdown value. I collected the below code from internet. please help me to fix it. <?php $dbc = mysqli_connect("localhost","root","escape123","tsheet"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $tAOptions=''; $cNOptions=''; $pNameoptions=''; /*Task Drop Down*/ $tAsk = "select * from ce_task order by tas_id asc"; $rowtAsk = mysqli_query($dbc, $tAsk); while ($tARow = mysqli_fetch_array($rowtAsk)) { $tAOptions .="<option value=\"".$tARow['tas_name']."\">" . $tARow['tas_name'] . "</option>"; } $tADropDown = "<select name='Task' id='Task'> <option selected='selected' disabled='disabled' value=''>Select Task</option> " . $tAOptions . …

Member Avatar
Member Avatar
+0 forum 8

i have a restaurant dropdown menulist, when sb clicks the one of the various meals i want a picture of it to <img id="menupic"src="picFold/actualPic.jpg" alt="Foto der Men&uumlliste">. I only had partial success , who can help me finalize this task ? thx sofar : menu.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Speisemenue</title> <link rel="stylesheet" href="jquery-ui-theme.css"> <script src="jquery-1.10.2.js"></script> <script src="jquery-ui.js"></script> <link rel="stylesheet" href="jquery-ui.css"> <link rel="stylesheet" href="style.css"> <script> $(function() { $( "#menu" ).menu(); }); </script> <style> .ui-menu { width: 150px; } </style> </head> <body style="background:darkred"> <div><a class="homeButton" href="index.html">Home</a></div> <ul id="menu"> <li>Pizzen <ul> …

Member Avatar
Member Avatar
+0 forum 2

Urgently need a menu dropdown WITH IMAGES for a restaurant website for its food menu. Looked for jquery on the internet,couldnt find one, only complete wordpress themes or some without images , but i'm looking for javascript or jquery or anything else to implement since the website is not on wordpress. Help !!!!! Thx !!!!!

Member Avatar
Member Avatar
+0 forum 2

Hi I am trying to clone a row with dependent dropdown. first row is working fine. Once i click add row button, if i select the project option its not working on client select option. can anyone please help me to fix. Note: I used trying using id="client[]" and id="project[]" is not working **do-de.php** <?php session_start(); include("myDB.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title> - jsFiddle demo</title> <script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script> <link rel="stylesheet" type="text/css" href="/css/result-light.css"> <style type='text/css'> </style> <script type='text/javascript'>//<![CDATA[ jQuery(function($){ var $button = $('#add-row'), $row = $('.timesheet-row').clone(); $button.click(function(){ $row.clone().insertBefore( $button ); }); }); $(document).ready(function(){ $("#client").change(function(){ var client=$("#client").val(); …

Member Avatar
Member Avatar
+0 forum 1

Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I can only grab the selected value for PHP to process if it was submitted, i.e., through a form. Then I could do something like this: if($_POST['dropdown'] == 'M') { $product = 'link'; } else if { //do something else } But I am not sure if this is possible using …

Member Avatar
Member Avatar
+0 forum 3

[CODE]<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.oledb" %> <%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script language="vb" runat="server"> Sub BindGrid() Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\Users\emong\Documents\Visual Studio 2008\WebSite1\App_Data/dbLupon.mdb") connection.Open() Dim command As OleDbCommand command = New OleDbCommand("Select * from tblLupon_C WHERE REGION_C = '" & lblRegion.Text & "' AND PROVINCE_C = '" & lblProvince.Text & "' AND CITYMUN_C = '" & cmbCity.SelectedValue & "' AND BARANGAY_C = '" & cmbBrgy.SelectedValue & "'", connection) Dim DataReader As OleDbDataReader DataReader = command.ExecuteReader() …

Member Avatar
Member Avatar
+0 forum 2

i have two combobox and i have two database table in sql server 1st table name is Province and 2nd table name is City if i select province in my 1st combobox then show all cities against selected province show in the 2nd combobox when we click on combobox dropdown list so plz help me how i can do this in vb.net 2010

Member Avatar
Member Avatar
+0 forum 2

Dear forum , i am facing a problem when i try to populate my combobox item from a dropdownlist in html. my code is the following which executes witount errors: Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim I As Integer = 0 Dim NAME As String For I = 0 To 10 NAME = WebBrowser1.Document.GetElementById("dropdownlistid").GetAttribute("value") MessageBox.Show(NAME) ComboBox1.Items.Add(NAME) Next End Sub It doesnt display anything from the dropdownlist but it gives an error that index was out of range.

Member Avatar
+0 forum 0

Hi, I want to run php function using jquery ajax, Task is i have two dropdown(html select) **Filter_by_class.php** <form action="filter.php" method="POST" id="filter_students_form"> <div class="field"> <label for="stud_class_filter" class="cbx-lbl lbl-width">Select Class</label> <span class="dbl-dote">:</span> <select name="studclass_filter" id="stud_class_filter"> <option value="">-- SELECT STUDENT CLASS --</option> <?php if ($getStudentClass = $db->query("SELECT * FROM classes")) { if ($getStudentClass->num_rows) { while ($row = $getStudentClass->fetch_object()) { ?> <option value="<?php echo $row->classkey; ?>"><?php echo $row->standard; ?></option> <?php } } } ?> </select> </div> <div class="field"> <label for="stud_section_filter" class="cbx-lbl lbl-width">Select Section</label> <span class="dbl-dote">:</span> <select name="studsection_filter" id="stud_section_filter"></select> </div> <div class="textalignCenter"> <input type="submit" value="Submit" name="class_select" id="class_select" class="btn"> </div> </form> When i choose the …

Member Avatar
+0 forum 0

Dear All help me pls.. i am unable to fetch result in dropdown from database... connection.php $db = new PDO("mysql:host=localhost;dbname=test","root",""); ----------------------------------------- Add_student.php <tr> <th>City</th> <td><select name="st_city" id="st_city"> <?php echo get_option_list("city","City_id","City_name"); ?> </select> </td></tr> ----------------------------------------- functions.php function get_option_list($table,$id,$name) { $SQL=$db->query("SELECT * FROM ".$table." ORDER BY". $name); $get_list="<option value=0>Please Select</option>"; while($row=$SQL->fetch(PDO::FETCh_ASSOC)) { } return $get_list; }

Member Avatar
Member Avatar
+0 forum 1

As it stands, the data elements are submitted to the database. But I need help figuring out two things: one, is how to show the new deptCode in the dropdown list of deptCodes and two, how can I clear the form after a successful submit? Below is the code that I am working with. Any help with this is greatly appreciated. <script type="text/javascript"> $(function() { $("#btn_dept").click(function(e) { e.preventDefault(); var deptCode = $("#newDeptCode").val(); var deptTypeCode = $("#deptType").val(); var deptName = $("#deptName").val(); var deptEmail = $("#deptEmail").val(); var deptPhone = $("#deptPhone").val(); var deptDesc = $("#deptDesc").val(); var dataString = 'deptCode='+deptCode+'&deptTypeCode='+deptTypeCode+'&deptName='+deptName+ '&deptEmail='+deptEmail+'&deptPhone='+deptPhone+'&deptDesc='+deptDesc; if(deptCode == '') …

Member Avatar
Member Avatar
+0 forum 6

hello,everyone i am making a registration page baesed upon php,codeigniter diificulity i am facing was when i try to make radio button or dropdown it misbehaves radio button's are not in single line but in different line so any one can help???? //my registration page <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Registeration</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- CSS --> <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700'> <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Oleo+Script:400,700'> <link rel="stylesheet" href="../../assets/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="../../css/Registeraton.css"> <link rel="stylesheet" href="../../css/bootstrap-responsive.css"> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Custom …

Member Avatar
Member Avatar
+0 forum 3

I am doing program in java .I have designed a jsp page which has 3 drop downlist's...country,state and district.I want to display the values in drop down list state when a country is selected...(for eg:-if india is selected,drop down list state must have only the name of states in india).In Mysql i have created 3 table's...table country has a primary key and country name.table state have state id,state name and a foreign key from country id...What is the code in servlet and jsp to do this?Pls help me to do this pblm...

Member Avatar
Member Avatar
+0 forum 1

how can I select project from dropdown then execute query catching the value of the project selected I have the follow code using AJAX and JSP pages admin.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>index</title> <script> function showState(str){ var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("domain").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getProjects.jsp?q="+str,true); xmlhttp.send(); } </script> </head> <body> Domain : <select onchange="showState(this.value)"> <% …

Member Avatar
+0 forum 0

Its my controller code <?php class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } This is my model code <?php class Books_model extends CI_Model{ public function __construct(){ $this->load->database(); } public function get_restaurants() { $sql = "SELECT id, names FROM restaurants "; $query = $this->db->query( $sql ); return $query->result(); } } public function view() { $data['result']=$this->Books_model->get_restaurants(); $this->load->helper(array('form','url')); $this->load->view('restaurants/booking',$data); } } Plz tell me what code i written in view file that i get data in dropdown form...thanx

Member Avatar
Member Avatar
+0 forum 1

The End.