Questions tagged [selection-object]

4 questions
363
votes
14 answers

Prevent text selection after double click

I'm handling the dblclick event on a span in my web app. A side effect of a double click is that it selects text on the page. How can I prevent this selection from happening?
David
  • 7,487
  • 6
  • 32
  • 25
2
votes
3 answers

Issue with IE Selection and Range

I'm trying to get the start element and the end element of a selection and the offset of the selection in each, i do this in firefox as follows: var delselection = window.getSelection(); var startOffset = delselection.anchorOffset; var endOffset =…
user11198
  • 131
  • 2
  • 6
0
votes
3 answers

Using Selection.Find in Microsoft.Office.Interop.Word to find tracked changes in a document

I am currently using the code below within a VB.Net application to find specific text in a Word document. The text is surrounded by symbols represented by the character codes in the .Text statement. The code below is working fine. The issue now…
Coralie
0
votes
0 answers

Associating selection object with HTML DOM element(s)

Does anybody know a way for matching Selection object with HTML dom elements based on something else than the element value? Let's consider the table below: 123 | 246 | 345 456 | 123 | 567 The user wants to modify the first row by selecting it with…
Jaana
  • 266
  • 1
  • 3
  • 14