selection

Selecting a TD element from it's ID in jQuery

I have an array called currentTD that holds two integers, the first element in the array is an ID to a <TR> element, and the second element in the array is the ID of a <TD> element within that <TR>. I want to somehow select that <TD> and change its background colour. I'm just not sure how I can select that <TD> given the "co-ordinates" ...

javascript cell selection

Hi, I want to select a cell range in an HTML table and using Javascript to change the background color of the selected cells. Is there an event to get all ids of the selected cells? thx ... ...

how can i limit the selection in MySQL?

I am confuse on how to limit selection in MySQL (e.g SELECT * FROM tblProduction LIMIT 1,N;) where N is unknown.. Can anyone help me on how can I limit the selection in MySQL? I want to show the records starting from row 2 (two) up to the end of the records. Thanks! ...

RichTextBox Highlight All Instances of a Phrase

In VB.Net, is it possible to highlight ALL instances of a phrase instead of only a single instance of it, for example: txtView.SelectionStart = txtView.Find("ERROR: Invalid command entered.") txtView.SelectionColor = Color.Red This would highlight "ERROR: Invalid command entered.", however if my RichTextBox text is: ERROR: In...

reduce the number of features in SPSS

Hi, I have a dataset with more than 200 features and I would like to reduce the number in order not to overestimate the prediction of the outcome. Does anyone know whether there is any option in SPSS to calculate mutual information between the target value (Y) and the independent variables (X) or any other method to check which variabl...

Determine web browser selection/focus color from JS?

Is there any way, from Javascript, to determine either the system's selection color (the color it makes text that the user selected), or the system's focus color (the color that is added to the outside of a tab-focused link or form element)? ...

How do i select a character in a textfield?

is it possible to select a certain character from a textfield ? Is it possible to switch their position as well? e.g. Hello is it possible to switch the position of the "H" with the "e" ? to make it "eHllo" ? ...

Javascript + How to get the index w.r.t the parent Node of selection + Browsers Other than IE

Hi I want to get the selection start and end index with respect to the parent node of the selected text. I am able to do this in IE. However in other browsers like Firefox, Opera, Safari and Chrome, I am able to access the selection and the index of the selected text. But my requirement is to get the index w.r.t the parent node and not t...

Calculating the selection begin and end indexes is not considering the '\r\n\' using javascript in IE

Hi... My XHtml that id displayed to the user will be something like below one.. <html iTag="d1e1" version="-//W3C//DTD XHTML 1.1//EN"> <head iTag="d1e3"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title iTag="d1e5">Every document must have a title</title> </head> <body iTag="d1e9"> <h1 iTag="d1e1...

Any good method to store Multiple Selection Value in database?

Hi there, What I am currently know is that use bitwise and Int type to store multiple selection value in Database. Take Sql Server 2008 as a example, 'Int' type in sql server is 32bit, so it accepts 32 answer, I only can use 1,2,4,8,16, etc to represent the answer, due to I need to store the multiple selection into one value, and use b...

WPF ListView column selection

I have a ListView. When I select a row I want that only one cell was selected not the whole row. How can I get this? Here is my styles and templates. <ListView x:Name="List" ItemsSource="{Binding }" ItemContainerStyle="{DynamicResource ListItemStyle}"> <ListView.View> ...

flex tree selection color just on double click

How could i disable the selection color on single click and enable it just to double click. ...

disable datagrid header rollover color and selection collor

how could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that.... ...

WPF ListBoxItem animating between Selection / MouseOver states

Hi, I have a ControlTemplate for my ListBoxItems and i want to animate between 4 different colors for the 4 Possible states of the Properties IsSelected and IsMouseOver. I have tried this using a MultiTrigger like this (IconBorder is a border surrounding the ListBoxItems <MultiTrigger> ...

Best practice for multiple selection web UI?

I've been looking at various ways to allow a user to select one or more choices from a list of approximately 29-30 options. I've come up with the following four types, and wonder which is preferred/most usable. See http://workingstorage.com/multiple%20selection.png ...

Selecting a software development project

I am currently my software engineering degree and as I am in my second year I need to select a topic for my project. I am totally confused on how to pick a good project topic, which I could use in my final year as well. I have specialization in the following areas, java, vb.net, sql server 2005 as well as artificial intelligence. I ca...

web: extend highlighted text by dragging

I am creating a document tagging application, where the user can select arbitrary (continuous) ranges of text and tag them. After a range has been tagged, it will be highlighted. I want to allow the user to easily extend/shrink a tagged range, without having to remove it and recreate it. Maybe by having a small icon at the beginning an...

storing a user selection that stores itself for use on reload in android app

I've built a dialog that asks the user to pick a city from the list provided when the application first opens. The dialog works perfectly, however I want to store the user's choice so that when the app is opened a second time, it checks to see if the user has already made a selection previously. If they have, it doesn't display the dialo...

WPF: Attached behavior is registered but never called?

Hello all, trying my first attached behavior: I want to bind the TextSelection of the RichTextBox to my ViewModel`s property: public TextSelection SelectedRichText {get;set;} That way I bind it: <RichTextBox behavior:RichTextBoxSelectionBehavior.RichTextBoxSelection="{Binding SelectedRichText}" /> Thats my code and I have 2 quest...

Custom contacts selection in iPhone like in SMS/Email apps

I am creating an app that allows users to select a list of friends from their contacts list. I can open up the ABPeoplePickerNavigationController, but how can I make the chosen contacts to display like in the image below (the Rosa Golijan part): Basically, a list of light-blue rounded rect buttons, and you can easily delete one if nee...