hi, everyone
When I wrote "var a1 =
document.getFirstChild().getChildNodes().item(1).getNodeValue();", a1 =
null. How can I get nodevalue in javascript? Someone help me? Thanks!
function obm1(form) {
var documentURI = cocoon.parameters["documentURI"];
var document = loadDocument(documentURI);
// bind the document data to the form
form.load(document);
var wid=form.lookupWidget();
wid.obm1_date.value=new java.util.Date();
wid.obm2List[0].obm2_part.value =
document.getFirstChild().getChildNodes().item(1).getNodeName();
wid.obm2List[1].obm2_part.value =
document.getFirstChild().getChildNodes().item(1).getNodeValue();
form.showForm("obm1-display-pipeline");
}
Magic
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]