Questions tagged [selectedtext]
93 questions
0
votes
3 answers
Selection text disappears when contextmenu pops up
Greetings All,
I am getting some weird behavior from WPF when i create an event to programatically open a context menu. once I select a text and right click the highlight of the selection disappears once the context menu opens up.
Here is a sample…

Nervous_cat
- 19
- 4
- 9
0
votes
1 answer
javascript : is it possible using charAt function to get selected text?
is it possible I could use charAt function within function get selection as below?
getSelected function () {
var userSelection;
if (window.getSelection) {
userSelection = window.getSelection ();
} else if (document.selection) {
…

user495688
- 973
- 2
- 15
- 25
0
votes
1 answer
how to get selected text surrounding context in javascript in different paragraph?
hi I have a few problems:
What might I get the word around the word selected, if the word before and after the selected word given limits only 20 words that surround the selected word?
how to get the correct position if the word in a paragraph have…

user495688
- 973
- 2
- 15
- 25
0
votes
1 answer
javascript to get next-previous paragraph of selected text in web page
hello i want i have function to get paragraph of selected text.
this is the function to get current paragraph of selected text
function getSelected() {
var userSelection;
if (window.getSelection) {
selection = window.getSelection();
}…

user495688
- 973
- 2
- 15
- 25
0
votes
1 answer
Put ending and starting text from the selected text spanning over multiple divs in javascript
I am trying to put text before and after selected text spanning over multiple divs.For example if the text is
This is a random text
Another random text
Now if the user selects "is a random text Another random text" from the two p…

soldiershin
- 1,612
- 1
- 18
- 29
0
votes
1 answer
Delete particular Text before and after the selected text javascript
I want to delete some particular text before and after the selected text.For example if the text is:
This is a <random>sentence</random> that i am writing
If the user selects text,it should remove

soldiershin
- 1,612
- 1
- 18
- 29
0
votes
1 answer
Sending Ctrl+C and copying selected text from any program(chrome, adobe reader, iexplorer, notepad, word etc.)
I'm trying to copy selected text from any program(chrome, adobe reader, iexplorer, notepad, word etc.) using c#.
I have read the tutorial on how to use Microsoft UI Automation ( AutomationElement' class) but it doesn't work on any program.
I truly…

user6055072
- 1
- 3
0
votes
1 answer
Clipboard item disappeared after the first use
I have this piece of code implemented for a "share" button, it is supposed to take the already selected text in my app and share it with other app:
shareBtn.setOnClickListener(new View.OnClickListener() {
@Override
public…

BlueMountain
- 197
- 2
- 17
0
votes
1 answer
Get the id of a selected value in Selectbox Laravel 5.1
I want to get the id of the selected value or item from a dropdown selectbox because I want to save it in the database. So, I tried passing the it as a value to get it with an hidden field on the page but it does work. How do I do this?
This is the…

ken4ward
- 2,246
- 5
- 49
- 89
0
votes
2 answers
Two-way SelectedText binding on TextBox using inheritance
I'm trying to replace the SelectedText of a TextBox with a new value by binding on the custom property 'Selected'. Currently, updating Selected through binding doesn't change the actual SelectedText. I'm almost there I think; at least…

arbitrary
- 103
- 9
0
votes
1 answer
Get selected text with Acrobat Javascript API
I'm trying to make a plugin written in javascript in Acrobat Pro XI.
I digged pretty much in the documentation, but founds nothing that helps me doing this simple thing.
Is there a way to get the selected text in an open document?

whitedevil89
- 63
- 1
- 8
0
votes
1 answer
Changing Selected Text in UltraTextEditor
I want to change value in SelectedText in Infragistics UltraTextEditor before calling Copy method. However, each time I try to set new value, SelectedText becomes blank. I'm working in C#, Visual Studio 2013.
Here is code snippet:
…

HalinaG
- 1
- 2
0
votes
3 answers
jquery loop through select tags on option change
I need help looping through all my select tags in my html page and running some functions on each change

Yeak
- 2,470
- 9
- 45
- 71
0
votes
0 answers
Setting Value and Text of ComboBox Using Property Panel
I have a combobox in my VB.NET application that is populated using the "Items" property in the property panel. The "Items" property will say "(Collection)" and when selected show a button with "..." This button expands to a new window where you can…

Khamey
- 481
- 4
- 17
0
votes
2 answers
Get value from Dropdown in PHP with onchange event
Good morning everyone !
Here's the situation; I have 2 dropdownlists, the first one contains some informations..
the second one, contains names of some people.
They both are filled from database.
What I want to do, is when a name is selected in the…

SpinaloS
- 31
- 1
- 1
- 12