3 messages in org.apache.cocoon.usersParse HTML returned from dodjo/ajax f...
FromSent OnAttachments
Andrew MaduJul 13, 2006 5:05 am 
Andrew MaduJul 13, 2006 5:09 am 
Andrew MaduJul 14, 2006 9:42 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Parse HTML returned from dodjo/ajax form submitActions...
From:Andrew Madu (andr@gmail.com)
Date:Jul 13, 2006 5:09:36 am
List:org.apache.cocoon.users

Hi,

I am trying to get my head round dojo.xml.Parse, but with little joy! I get a returned document from a form submit as follows:

formNode: "Form1", load: function(load, data, e) {

//Parse data and extract form element

//Return form element to document dojo.byId('output').innerHTML = data;

}

What I want to do is extract from the <form> node from the returned html. In java I would extract the element as follows:

DomParser parser = new DOMParser(); parser.parse(data); Document document = parser.getDocument(); NodeList nodes = document.getElemenByTagName("form");

How would I acheive the same using dojo?

regards

Andrew