I've built a version of the winEmbed example and I'm now trying to get and set the contents of individual elements within the DOM. By trial and error I've discovered for example, if I give a paragraph an id, then I can use nsIDOMDocument::GetElementById to retrieve an nsIDOMElement pointer. If I cast this to nsHTLMParagraphElement* then I can call GetInnerHTML() which will pass back the text contents of the paragraph. However if I try this same technique for an input element (on a form) then only an empty string is returned ie. I don't get the user-entered contents of the input control. So the question is, am I attempting to do this in the correct way, or should I be using another technique ? Has anyone out there done this ? Are there any relevant documents or faqs ? I've searched through all the docs I can find - but may well have missed something. Cheers... ...Andy B.
