select

ColdFusion & Ajax: How to Get Blank Row in Binded Select Box?

I have two cfselect boxes that use binds and a cfc. One is State. Choose a State, and the second cfselect (counties) is populated on the fly. Prior to doing this with the bind attribute, I relied on the queryPostion="below" attribute such as the following to basically put a blank row into the option box. I want to do the same thing f...

Determing the number of bytes ready to be recv()'d.

I can use select() to determine if a call to recv() would block, but once I've determined that their are bytes to be read, is their a way to query how many bytes are currently available before I actually call recv()? ...

How do I make a multiple select have an X at the end of each option to erase it?

I wanna make a select multiple list have an X to the right of each option and when I click it it should remove it from the list. I think this would be a mixture of jQuery to delete itself and CSS to add the X at the end of the option. I'm already using this javascript function: function addToList(list,firstOpt, secOpt,number){ ...

Select max value rows from table column

my table look like this.. id name count -- ---- ----- 1 Mike 0 2 Duke 2 3 Smith 1 4 Dave 6 5 Rich 3 6 Rozie 8 7 Romeo 0 8 Khan 1 ---------------------- I want to select rows with max(count) limit 5 (TOP 5 Names with maximum count) that would look sumthing like... id name count -- ---- ----- 6 Rozie 8 4 Dave 6 5 Rich 3 2 Duke 2 3 Smi...

Dynamic Linq Select concatenation

I have a dynamic select statement thus: "new(PurchaseOrderID as ID_PK, PContractNo + GoodsSupplier.AssociatedTo.DisplayName as Search_Results)" As can be seen I wish to concatenate the 'PContractNo' and 'GoodsSupplier.AssociatedTo.DisplayName' fields into one returned field named 'Search_Results'. It is important that these two fields ...

Using LINQ, select list of objects inside another list of objects

public class ClassA { public string MyString {get; set;} } public class ClassB { public List<ClassA> MyObjects {get; set;} } List<ClassB> classBList = new List<ClassB>(); var results = (from i in classBList select i.MyObjects).ToDistinct(); I want a distinct list of all the ClassA objects in the classBList. How do I go abo...

PHP Curl - Get data generated with AJAX

Hi, I want to get data generated by an AJAX request. In this page http://www.fipe.org.br/web/index.asp?p=51&amp;aspx=/web/indices/veiculos/default.aspx there are some html selects. When the user click on the first one (Marca), the second one is filled. I want to get this data. This is my code: <?php $curl = curl_init(); $postData = arr...

MySQL case insensitive select

Can anyone tell me if a SELECT command to mysql is case insensitive by default? and if not, what command would i have to send so that i can do something like: SELECT * FROM `table` WHERE `Value` = "DickSavagewood" where in actuality, the real value of `Value` is dicksavagewood ...

Expand the contents of a select element to increase the number of option elements.

Hi folks, I've got a select element with a large number of option elements and I'm looking for a way to toggle between having all options available and having a subset of the options available for selection (the subset being the most popular options). The options are ordered alphabetically and are grouped by their value's initial lette...

Microsoft visual studio auto complete selection problem

Hello. when i am coding visual studio do not select best value. if you look this image you will understand what i mean microsoft visual studio 2010 ...

SELECT with array()

I'm trying to filter a table to SELECT the values to certain rows based on condition. The first rather complex SELECT works fine yielding me a group of id's. But I want to use this id group ($art_id) in an array for the 2nd SELECT to get rows more straight forwardly. Hope someone ha suggestions. Thanks, Allen. the first SELECT is not ...

problems in select() and sending a signal SIGUSR1 in the end (C language)

HI, I'm implementing a classical map-reduce program in which I have a parent that spwans N children(maps) + 1(reduce). The parent sends info, through unnamed pipes, to each one of the N children. The maps process the request and send the result, an int, to reduce. The reduce does a select and sums up every counter writen on the pipes fr...

HTML : Make the text unselectable

there is text but you cannot select it check this out How to achieve this? ...

DBI database handle with AutoCommit set to 0 not returning proper data with SELECT?

This is a tricky one to explain (and very weird), so bear with me. I will explain the problem, and the fix for it, but I would like to see if anyone can explain why it works the way it works :) I have a web application that uses mod_perl. It uses MySQL database, and I am writing data to a database on regular basis. It is modular, so it ...

Jquery: run code when text is selected

Hello! I have a HTML document which llokes like this: <div class="this_can_be_selected">Some text here</div> <div>No text in the div above is selected</div> <div class="this_can_be_selected">Some text here</div> <div>No text in the div above is selected</div> <div class="this_can_be_selected">Some text here</div> <div>No text in the ...

MS-Access -> SELECT AS + ORDER BY = error

Hello. I'm trying to make a query to retrieve the region which got the most sales for sweet products. 'grupo_produto' is the product type, and 'regiao' is the region. So I got this query: SELECT TOP 1 r.nm_regiao, (SELECT COUNT(*) FROM Dw_Empresa WHERE grupo_produto='1' AND cod_regiao = d.cod_regiao) as total ...

Why won't this select open up?

I have a very simple select drop down. In Chrome, it doesn't drop down. The code itself works fine, and the drop down works in Safari, but for some reason it won't open in Chrome. Here is the HTML: <select name="pellet_credit" class="item_discount"> <option>1</option> <option>2</option> <option>3</option> </select> It shou...

Appending select options - IE problem/solution cause other browser issues.

I have a <select> that depending on previous options is populated by a var with a bunch of <option> values. Naturally, because IE doesn't work with innerHTML I have to append this template to the <select> which now works great in IE. HOWEVER I now need a way to clear out the select options from the previous search and in FF stop it fro...

Select Query is not working with WHERE clasue when there is a space in Column Name

I have got SQL Server database in which Table column name have spaces. For example I have a Table something like this: ID| First Name| Last Name|Birth Date 1 | Wasim | Akram | 01-01-2000 2 | Saeed | Anwer | 01-01-2001 Now When I use a following query(column name with space) I get empty result: SELECT * FROM table WHERE...

Internet Explorer doesn't know how to add options tag to a select in jquery...

Hi there, Im facing a problem with jquery in the Internet Explorer 7 and 8: Im Trying to add a option tag to a existing select: var s = document.getElementById("category"); s.options.add(select_option); But IE just says: “Object doesn't support this property or method” and points to the s.options.add(select_option); line... Anybody...