On Apr 1, 2004, at 2:41 AM, JD Daniels wrote:
<...snip>
understood...
row.description.value = document.getOwnerDocument().getTagName("description");
(This obviously does not work for me :)
How does it not work?
Cannot convert null to an object.
Heh heh.... no, it just happened to be commented out when I copied.. been trying all sorts of crap in there
Heres my flow on AddRow function as it is now:
model.inventory.onAddRow = function(row) {
var uri = "cocoon:/nde-load-InventoryItem?id=" + model.inventoryId.value;
var resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver .ROLE);
var source = resolver.resolveURI(uri);
var parser = cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROL E);
var document = parser.parseDocument(Packages.org.apache.cocoon.components.source.Sourc eUtil.getInputSource(source));
//row.description.value = document.getOwnerDocument().getTagName("description");
}
Silly question, but the problem isn't that you have that statement commented out, is it?
If you sayyep works fine assigning it like that. I just can't get them out of the var document :(
print (document.getOwnerDocument().getTagName("description"));
...then you should see something in your servlet container's stdout (log file or whatever). Is it what you expect?
And if you write this:
row.description.value = "Foo bar!";
Does that do the expected thing?
~ml
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
