cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: FlowBasedXMLEditor
Date Thu, 16 Sep 2004 04:14:46 GMT
   Date: 2004-09-15T21:14:46
   Editor: TonyEdwards <anthonybedwards@optusnet.com.au>
   Wiki: Cocoon Wiki
   Page: FlowBasedXMLEditor
   URL: http://wiki.apache.org/cocoon/FlowBasedXMLEditor

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -31,7 +31,7 @@
 [[BR]]importClass(org.w3c.dom.Element);
 [[BR]]importClass(org.w3c.dom.NodeList);
 [[BR]] Thereafter is became an exercise in wrapping the DOM functions in flow script. 
-[[BR]]Attached to this page should be my general purpose '''jsUtils.js''' file which contains
all the necessary methods to carry out DOM manipulation. If anyone can see any obvious flaws,
please let me know!
+[[BR]]Attached to this page should be my general purpose '''attachment:jsUtils.js''' file
which contains all the necessary methods to carry out DOM manipulation. If anyone can see
any obvious flaws, please let me know!
 To create a new document, pass the name of the document to the '''newDocument''' function.
Adding attributes is as simple as calling '''addAttribute'''. If the nodeParent parameter
is null, the attribute gets assigned to the document root.
 [[BR]]The use of the '''sessionManager''' is interesting. 
 [[BR]]I couldn't for the life of me get a reference to the DOM if I used the '''cocoon.session'''
object. I don't know why. I scoured all manner of places and found the use of the sessionManager,
stuck the document in there, and then I was able to access the DOM from the pipeline. Maybe
I missed something, but it works.

Mime
View raw message