Member Avatar

I have a complex UI with little screen real estate, so I'm trying to allow users to manage contents of a combo box using a right-click context menu. But I'm having trouble getting the combo box's drop down list to appear at the same time as the pop-up menu. I've created a small program with just the relevant code to show where I've gotten so far. If anyone knows how to get the pop-up menu to appear on top of the combo box's drop-down list, I'd sure appreciate the help. [CODE] import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import …

+0 forum 0
Member Avatar

Hi - new to ASP... I have a form with a dropdown list. Based on what option is selected I want the form to be send to different email addresses. Sample code I have is: [code=asp]<p>Gender: <br> <select name="gender"> <option selected value="">Choose....</option> <option name="gender" value="male">Male</option> <option name="gender" value="female">Female</option> </select> <% if request.form ("gender") = ("male") then %> <input type="submit" value="Submit" name="btnSubmit" onClick="document.form1.action='send_it.asp'"> <% else %> <input type="submit" value="Submit" name="btnSubmit" onClick="document.form1.action='send_it_female.asp'"> <% end if %>[/code] When I test this, the code always goes to the "else" statement. Any help would be much appreciated!

Member Avatar
+0 forum 1
Member Avatar

Hi I am in need of some help with a CSS drop down menu that is not displaying on top of another site feature. The website is www dot silvertrowel dot co dot uk / index-test dot php The feature is java script and if i disable java script on my browser then the CSS version of the feature kicks in and then my drop down menu displays fine!!! All help is appriciated Thanks Daniel

Member Avatar
+0 forum 3
Member Avatar

hi, i have a question which feels like it should be very easy but my collegues have had some difficult explaining the logic to me. The thing is, I have a dropdown as such, [CODE=jsp] <ui:dropDown binding=..... tabIndex="5"/> [/CODE] and in the jsp page, i want to set it to it's 10th element via javascript. So if the dropdown is showing element 1, when i press a button or key, it will show element 10. It doesnt have to interact with bean part. I just need to see the 10th element in the dropdown. I know the index and did …

+0 forum 0
Member Avatar

Hello Daniweb.com, i hope you can help me, i am will create a dropdown navigation with php and mysql. I have some codes here, as you can look at. My dropdown navigation works. But it will not shows under the right navigations points. As you can se here on my website. [URL="http://www.icmsdesigns.prowdesign.dk/index.php"]http://www.icmsdesigns.prowdesign.dk/index.php[/URL] I'm sorry at my english, is so bad. I hope you can understand me :) [code=php] find_selected_page(); echo "<div id=\"navigation\">"; echo public_navigation($sel_subject, $sel_page); echo "</div>"; function confirm_query($result_set) { if (!$result_set) { die("Database query failed: " . mysql_error()); } } function get_all_subjects($public = true) { global $connection; $query = …

Member Avatar
+0 forum 5
Member Avatar

Hi All. I am having some trouble with a script which allows a user to upload a photo. When the page first loads it checks if the user has reached their maximum photo capacity. If they have then it will redirect them to another page. If they can upload more photos it will keep them on the page. Before I added this the user could select which album the photo goes into by using a drop down box. Now when I load the page, there is nothing in the drop down box. Here is the code and if anyone could …

Member Avatar
+0 forum 4
Member Avatar

I have results of people that i need to compare and echo out. Eg 2x dropdown menus with all the peoples names in and each field then echoed in a table once the 2x dropdowns have been selected. the 2x dropdowns will be the same and have the same names in. Martin Peter (martin image) (peter image) field 1 - 56 field 1 - 56 field 2 - 22 field 2 - 22 field 3 - 72 field 3 - 56 field 4 - 75 field 4 - 56 Hope somebody can help as need it for a project.

Member Avatar
+0 forum 1
Member Avatar

[U]Hey Guyz ....This is Aneesh I am new to javascript... and I needed a Sliding Javascript Dropdown Box ....[/U][B] I got many links on the web but with no explanation...[/B] [B][I][U]What I need:-[/U][/I][/B] I need some links with Sliding Javascript Dropdown Box source and explanation... Thanking You... Aneesh Dogra

Member Avatar
+0 forum 1
Member Avatar

Can someone look at this and tell my why it's not working like it should? It gets the data from the database fine, just wont post to search.php [CODE]<?php //connect to your database ** EDIT REQUIRED HERE ** mysql_connect("localhost","root",""); //(host, username, password) //specify database ** EDIT REQUIRED HERE ** mysql_select_db("test1") or die("Unable to select database"); //select which database we're using $sql="SELECT LastName, FirstName FROM persons"; $result=mysql_query($sql); $optionsfname=""; $optionslname=""; while ($row=mysql_fetch_array($result)) { $id=$row["ID"]; $fname=$row["FirstName"]; $lname=$row["LastName"]; $optionsfname.="<OPTION VALUE=\"$id\">".$fname.'</option>'; $optionslname.="<OPTION VALUE=\"$id\">".$lname.'</option>'; } ?> [COLOR="Red"]<form action="search.php" method="GET"> <select name="name"> <OPTION VALUE=0>First Name <?=$optionsfname?> </SELECT> <input type="Submit" value="Search"/> </form>[/COLOR] [/CODE] search.php [CODE]<?php // Get the …

Member Avatar
+0 forum 3
Member Avatar

The Internet explorer doesn't allow the dropdown list to show downwards.Hi, I am trying to insert values into a dropdown list with a for loop. I have a dropdown list like. [code] <div style="padding:200px 0"> <asp:DropDownList ID="ddlno" runat="server" > </asp:DropDownList> [/code] In the coding part, I have this. [code] int i; for (i = 1; i < 60; i++) { ddlno.Items.Add(Convert.ToString(i)); }[/code] In firefox , the dropdown list is showing downwards.its ok. But my problem is with internet explorer. The dropdown list is showing upwards.But I want the dropdownlist to display downwards. Thanks in Advance, Rajesh

+0 forum 0
Member Avatar

I need to make a form with a few options could be radio or drop down, ex a, b, and c.. and when one is selected I would have a if command that would give you another set of options like if option "a" is selected then in the same page would come up another set of options like a1, a2, a3.. or if "b" is selected then options b1, b2, b3 and so on.. thanks for the help..

Member Avatar
+0 forum 3
Member Avatar

Hi, I am somewhat new to PHP and MySQL and I am having a little trouble with what I want to do, which is assign a cell for each option selected and a price or insert the price into MySQL table depending on the option selected. Whichever is easier or more sufficient. Then, when you click the recalculate button, it will add up all the prices and echo the total below. Whats the best way to do this? Any help is appreciated. Here is the form: [url]http://illcomputers.comyr.com/custom.php[/url] Thank You

Member Avatar
+0 forum 1
Member Avatar

Ok I am currently learning php through wordpress and I have a small project to create a running website which displays the results. CUrrently I can display the results for a certain race that I hard code: [code] <?php // Connects to your Database mysql_connect("XX.XX.XX.XX", "admin", "pwd") or die(mysql_error()); mysql_select_db("db") or die(mysql_error()); $query = mysql_query(" SELECT R.FirstName, R.LastName, R.Category, C.ClubName, RR.Position, RR.Time, RR.PercentageOfLeader FROM runner R INNER JOIN PersonClub PC ON PC.RaceNumber = R.RaceNumber INNER JOIN Club C ON PC.ClubID = C.ID INNER JOIN RaceRunner RR ON RR.RaceNumber = R.RaceNumber INNER JOIN Race RRR ON RRR.RaceID = RR.RaceID WHERE RRR.RaceID …

Member Avatar
+0 forum 2
Member Avatar

No idea if this could be done by just javascript but don't know where else to post it... I have a contact forum where i want the visitor to select if they're a member of not, if they select no, nothing happens but if they select yes a new text field pops up where they have to fill out their username. thing is, i've researched a lot and just cannot find out how to do it... Anybody know how to? \\ Vic

Member Avatar
+0 forum 7
Member Avatar

hi all, I'm new to PHP and Java script, but would like to get som experience with em'. Im trying to make a search for a dropdown list, but it doesnt work? It is based heavily on this code [url]http://www.rgagnon.com/jsdetails/js-0089.html[/url] (wich works fine?) I have testet to see if the searchSel() gets called, and it does. but the dropdown doesnt update? If i hard code the option values it works, so I guess there are something wrong with the PHP? even tho the resulting source is identical to the hardcoded? Any help you be apreciated - hmortensen [CODE]<HTML><HEAD><SCRIPT type="text/javascript"> function …

Member Avatar
+0 forum 2
Member Avatar

Hi guys, The codes below is running perfectly fine. But I have a problem - if there are no records found in the database, my dropdownlist will not display nothing. However, I want it to display something like "no records found" instead of havng it blank Can someone tell me where should I place it to get the results i wanted? Here are my codes. [B][U]InvoiceFunctions.class[/U][/B] [code] Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class InvoiceFunctions Private strConnectionString As String Private objDataAdapter As SqlDataAdapter Private objInsertCommand As SqlCommand Private objLoadCommand As SqlCommand Private objUpdateCommand As SqlCommand Private objValidCommand …

Member Avatar
+0 forum 1
Member Avatar

i am having a problem where i want to give user an option to select more entry from one dropdown...example : <form name="form1" method="post" action=""> <label> <select name="service" id="service"> <option value="service1">service 1</option> <option value="service2">service2</option> <option value="service3">service3</option> <option value="service4">service 4</option> <option value="service5">srvice5</option> <option value="service6">service 6</option> </select> </label> </form> in this case, i want to select service 3, service 4, service 5 and service 6... i dont know how to create a javascript function for this...can u guys help me with my problem... :)

Member Avatar
+0 forum 1
Member Avatar

I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country in first dropdown list, then with the help of AJAX,PHP and MYSQL, all the states of the selected country is added to the second dropdown list dynamically wihout reloading the page. Please help!!! Im using PHP, AJAX and MySQL for Database.

Member Avatar
+0 forum 1
Member Avatar

I have a dropdown list at the bottom of my page. It's populating like it's supposed to but when I choose whatever option I want and click submit it doesn't repopulate the content on the page like I want it to. I'm trying to have content of the page change with whatever option was chosen. Here's the code I have thus far. [code] ///// Data from Datdbase //// $sql = "SELECT * FROM table WHERE title = 'title'"; $result = mysql_query($sql,$db) or die(mysql_error()."<br />SQL: $sql"); $img = array(); $title = array(); while($row = mysql_fetch_array($result)){ // process data $title[] = $row['title']; …

Member Avatar
+0 forum 2
Member Avatar

Does anyone know how to setup a dropdown list for C# without using a database? I'm trying to set up one that will allow users to select a newsletter from the dropdown and have it pop up in a new window. Any ideas? [CODE] <ASP:DropDownList id="NewsletterSelect" runat="server"> <ASP:ListItem value="'[Path]'">Newsletter 1</ASP:ListItem> <ASP:ListItem value="'[Path]'">Newsletter 2</ASP:ListItem> <ASP:ListItem value="'[Path]'">Newsletter 3</ASP:ListItem> <ASP:ListItem value="'[Path]'">Newsletter 4</ASP:ListItem> </ASP:DropDownList> <!--<input type="button" value="Read Newsletter" onclick="window.open('[Path of selected Newsletter]')"/> --> </td></tr></table></asp:Content> [/CODE]

Member Avatar
+0 forum 2
Member Avatar

Hello all, While attempting to switch from a hard-coded array to a dynamic array read from a db table, I'm running into a few snags. I'm using the following function to create the dropdown menu, and it has worked for everything thus far: [CODE]// function showDrop($array, $active, $echo=true){ $string = ''; foreach($array as $k => $v){ $s = ($active == $k)? ' selected="selected"' : ''; $string .= '<option value="'.$k.'"'.$s.'>'.$v.'</option>'."\n"; } if($echo) echo $string; else return $string; } [/CODE] ...send in the array, prints out a menu. No problem. But when I try to create the same array dynamically, I can't …

Member Avatar
+0 forum 3
Member Avatar

some body help me.I want to know how to put the dropdown list from database at my textbox cursor. full problem definition is like this. I want to create a Hint system for SQL which will give the structure of of Query. for example if user enters trigger he will get drop down list of all possible structure of trigger.which I will collect from cache memory. same if user gives select * from (drop down of user table). now how get this drop down at that location which also should valid if I click by mouse pointer. If also solutions …

Member Avatar
+0 forum 2

The End.