ZVON > References > DOM1 Reference

substringData (method)

Owning interface and usage:  
CharacterData.substringData(offset, count)

Member of these other interfaces :  
CDATASection, Comment, Text

Description:  
Extracts a range of data from the node.

Parameters:  
unsigned long offset  -  Start offset of substring to extract.
unsigned long count  -  The number of 16-bit units to extract.

Returns:  
DOMString -  The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned.

Exceptions:  
DOMException INDEX_SIZE_ERR
Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
DOMException DOMSTRING_SIZE_ERR
Raised if the specified range of text does not fit into a DOMString.


Example:
JavaScript:
  var txt = document.createTextNode('AAA-BBB');
  var output = txt.substringData(2,3);
Output:
desired your browser
A-B



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
UNLIMITED Web Hosting by HostDepartment Alojamiento Web UK Domain Names glossary for conference call answering service
MSN VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE