>>>> As in, you see the values in those input fields?

-------   Yes, I do see the values in the input fields.



>
> > nsIDOMWindow domWindow = (nsIDOMWindow)
> > _webBrowser.getContentDOMWindow();
> > nsIDOMDocument dom = domWindow.getDocument();
> > dom.getDocumentElement()...
>
> And then what?  How are you getting the values, exactly?



------ when setting the values of the input fields, i use
nsIDOMHTMLInputElement::setValue() to set the values. Before clicking
on the <submit> button on the form, I traversed the entire DOM and saw
that the newly set values are in the <input> fields as "value"
attributes. ( the code snippet was just to indicate to you how I get
to the DOM. It doesnt have my entire code.. just wanted to make sure
if there is some other way to get to the "modified" DOM. ) ... When I
navigate out of the page and then come back, I don't see the "value"
attributes on the <input> fields anymore. It's as if the page was
reloaded.


>>>>>>>e. I then navigated back to the test page. When I retrieved the DOM,
>>>>>>>> the newly added text from JavaScript was NOT there.
>>>>>  Whether it's there or not will depend on whether the page was loaded 
>>>>> from bfcache or not.


--- does the preference "browser.sessionhistory.max_total_viewers",
control it? In a different computer than the one I am debugging, when
I set this attribute to a positive integer, the JavaScript updates are
retained when I navigate back to the page. When I set the value to
"0", the JavaScript updates aren't retained. However, the same
preference doesn't seem to have any affect on the computer I am
debugging on.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to