Modify XHTML (Rich Text) through XMLDOM using JSCRIPT - InfoPath Dev
in

InfoPath Dev

Qdabra® qRules

Use our Google Custom Search for best site search results.

Modify XHTML (Rich Text) through XMLDOM using JSCRIPT

Last post 02-25-2009 03:28 PM by Petronomicon. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-25-2009 03:28 PM

    Modify XHTML (Rich Text) through XMLDOM using JSCRIPT

    Please HELP!

    Trying to modify a rich text box programmatically through the DOM using Jscript. 

    I simply want to add a name and date to the end of the rich text box without losing the formatting. (Modifying the .text field removes all formatting)

    I believe that I have to create an XML navigator or node or property.

    All I have so far is

    var XMLnav = new ActiveXObject("Microsoft.XMLDOM");   or  var nav = new ActiveXObject("Msxml2.DOMDocument");

    I then try this code:

    XMLnav.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-02-04T19:13:24"');

    but the nodes are all null.

    I'm completely lost.

    Thanks very much for your help!

    Dave

    :o)
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.