In the context of my program, loading a page via a "data:text/html,[etc.]" URL doesn't work as expected.
The first such call to Navigate() works - the HTML contents passed as the argument are rendered and displayed. Subsequent calls do not work - the display remains unchanged. If I call Refresh() after the Navigate() call, the new document contents are rendered and displayed. However, if I call Refresh() after the first Navigate() call, no new document contents are thereafter displayed for the life of the control, no matter how many times Refresh() is called. To clarify, the following works: Navigate() Navigate() Refresh() Navigate() Refresh() [etc.] The following does not work: Navigate() Refresh() Navigate() Refresh() Navigate() Refresh() [etc.] I am unable to reproduce this in a small sample program. In a small program, the display is updated after each Navigate() call, with no need for a Refresh(). In the course of trying to figure out why it's not working, I noticed that in Mozilla itself, typing a "data:" URL directly into the location entry field shows something similar to my problem. If I first put this as the location: data:text/html,<html><body bgcolor="#CCCCCC">Testing 1</body></html> ...then hit ENTER, the page displays "Testing 1" on a grey background. If I then change the URL to this: data:text/html,<html><body bgcolor="#CCCCCC">Testing 2</body></html> ...hitting ENTER leaves the page displaying "Testing 1". Only after refreshing the page is "Testing 2" displayed. Anyone have any insights into this strangely inconsistent behavior? -- - Mike Remove 'spambegone.net' and reverse to send e-mail.
