View Single Post
  #2 (permalink)  
Old June 17th, 2007, 07:38 AM
zaerymoghaddam zaerymoghaddam is offline
Authorized User
 
Join Date: Jun 2007
Location: Tehran, Tehran, Iran.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Accessing list of selected nodes is not possible in this way, but I think that using 'htmlText' property of 'TextRange' object may be usefull in this situation. You can access HTML representation of selected text of document using 'document.selection.createRange().htmlText'.

This property give you a plain html code of selected portions of document. If your span elements have specific id (or specific pattern in their id), you can search this string and find what span element have been selected by user and access them by document.getElementById('span id');
Reply With Quote