select

Select box shrinks in IE7 but not IE6 or IE8

I'm having a problem in IE7 with jquery and select boxes. When I set the width of a select box and then use jquery to re-populate the items on change of the first select box, the second select box is being reduced based off of the set width. For example : The follow code uses two select boxes. When the first select box has a change eve...

Python: list problems

I've read in a text file and converted each line into a list. using this script: l = [s.strip().split() for s in open("cluster2.wcnf").readlines()] How would i go about : the file it opens is dynamic rather than static? i.e. the user chooses the file to open. Select specific lines to read after it has been converted to a list. assi...

transform a select list into a ul list

I am trying to clone a select list into a standard ul list for enhanced javascript select box manipulation/styling. Basically, if I do this: $("#calendar select option").clone().appendTo("#test"); i get the following html <ul id="test"> <option>All Types</option> <option>Installation</option> <option>Music</option> <option>Performing ...

how to make sure select option text align in the center in IE?

select,option{text-align:center;} works in FF, but not in IE(at least 8.0), how could I make sure that the text align in the center for IE8.0? Thanks!!! ...

LINQ : make select and update

Hello, I have this code foreach (MyType o in myList) { var res = from p in myOriginalList where p.PropertyA == o.PropertyA && p.PropertyB == o.PropertyB select p; //Need to update myOriginalList //.... } I'd like in the myOriginalList do an update for each record found by the Linq select. How can I do th...

selecting area on photo

is there any free JS library to select custom resize area on photo? ...

MySQL select multiple values from column

Here is the table ID WHO FRUIT 1 Adam Apple 2 Adam Lemon 3 Eve Apple 4 Adam Grape 5 God Papaya 6 Eve Melon How do I get all persons who have apple and lemon: in this case, so that I get the result Adam? Furthermore, I want all persons who have apple and lemon or melon, so I would get Adam ...

why do my select boxes reset after appending a new one?

For once, I am getting the intended results in IE6, but not FF (or Chrome). I have a select box (listing locations) which is dynamically generated using JS. I have a button that allows the user to add more of the select boxes, so they can choose more than one location. When the JS code adds the new select box, the already present sele...

SQL Select Distinct with ints and varchars

I have a query which returns a number of ints and varchars. I want the result Distinct but by only one of the ints. SELECT DISTINCT t.TaskID , td.[TestSteps] FROM SOX_Task t snip Is there a simple way to do this? ...

Create a styled Dropdown like on jquery UI

On http://jqueryui.com/demos/accordion/ at the top right corner, you can see a dropdown that says "Theme: UI Lightness" by default. I'd love to create such an interactive element in my web application. Does anyone know of a good jquery plugin to easily do this? ...

Select the max date and then select the last date for every record in a group since the max date

I want to get the last date in the table (12/3/09) and show each Well in a Field, since the last date. Field, Well, TestDate, Amount X, A, 12/1/09, 500 Y, D, 12/1/09, 400 Y, E, 12/1/09, 300 Y, F, 12/2/09, 50 X, B, 12/2/09, 40 Z, G, 12/2/09, 30 X, C, 12/3/09, 512 Y, D, 12/3/09, 425 Z, G, 12/3/09, 31 SELECT Field, Well, Amount, Last(...

Select datetime data from SQL Server colum

SELECT [NEXT_UPDATE_TIME] FROM [BGREX_UpdateQueue] WHERE [NEXT_UPDATE_TIME] < 18/12/2009 I want to select those dates from the records where datetime value in column is less than some datetime, we need to compare. I have several value lass than "18/12/2009", but getting no rows returned. following syntax does not work either SELEC...

Select control problem with Firefox when "size" and "style height" are specified

I have a problem with select listboxes under Firefox 3.5.6. When both the "size" attribute and "style:height" attribute are specified, the select control does not seem to process Page Up and Page Down key presses properly. They act strangely: first of all they scroll through the options one at a time, just like an arrow up or down key ...

How to use thickbox (or modal window) to update a select input box

I have a form with a dynamic select box (pulled from a database). I want to give users the ability to add to that select box without leaving the form. I would prefer a thickbox (or modal window) to pop up when the user clicks a link next to the select box. The thickbox popup would have a form where the user can enter the new value to ...

Query to select intervals from a table

I have a table that defines time intervals. _______________________________ | id | description | start_date | |____|_____________|____________| | 1 | First | NULL | | 3 | Third | 2009-12-18 | | 5 | Second | 2009-10-02 | | 4 | Last | 2009-12-31 | |____|_____________|____________| It stores only the s...

jquery - trying to use pattern matching with window.location.pathname...

Basically, if I'm at: http://example.com/content/connect/152, I want to find out if "connect" is present in the url and then set the selected value of a menu to something specific... (The url could also be something like http://example.com/content/connections, in which case, it should still match...) This is what I've been trying, whic...

login - change form action based on selection?

I have this script on a mafia game where i have 4 worlds/servers I have index.php where i want to login directly to one of the servers by selecting it from a option I have this code and i need to change form action <form action="/ro1/index.php?action=login" method="post"> <input id="user" name="user" class="text" type="text" value="Na...

Initial Dropdown State based on GET Data

I have a model of objects in a dropdown menu: <select id="group_select" name="group_select"> <option value="1">Group One</option> <option value="2">Group Two</option> </select> Each corresponding object has a detail page in which I want to have a link that sends the user to the page with the dropdown menu with the object they ...

style a form (select) using javascript, no framework?

anyone know how i can style a form element with javascript, but without a framework? Found a nice plugin for jquery but I don't use jquery at all on my website so I want to avoid it if possible.. I want to create a select box that looks like this: http://iforce.co.nz/i/qebncmoz.png to clarify, i want to set an image/background on the...

javascript/css replacement for <select>

Yeah sorry I actually asked this question already except I dont think anyone understood what I was asking. I am asking how to produce an html list which is styled as in this picture below: http://iforce.co.nz/i/dafjj52d.png where by there is a custom background/button for the actual list dropdown action. I've seen this done using a jQ...