|
Hi,
Thanks for the answer, the problem was that actxserver was starting IE in protected mode:off, while in general pm:on was at browsing security settings. So when navigate2() was called the navigation happened in an unaccessible pm:on tab.
Switching protected mode to "off" state solved the problem.
Of course this might not be an ideal solution but its good for workaround.
Cheers,
Laszlo
"Nicolaie Popescu-Bodorin" <freeseosubmit@yah00.com> wrote in message <gn90j2$aa9$1@fred.mathworks.com>...
> Hello Laszlo,
>
> I think that you have to customize those tools adapting them to use navigate methods within a given frame/window (like in javascript) instead of using navigate methods within the global IEBrowser object. Observed behavior is motivated by the new DOM architecture of the latest IE versions (MS Vista):
> IEBrowser>TabCollection>Window>FrameCollection.
> The old DOM architecture of IEBrowser object is:
> IEbrowser>Window>FrameCollection.
> Another solution could consist in changing some registry values to enshure that IEBrowser will display a single Tab and a single Tab only. But this possibility hasn't been truly investigated by me. It is only an ideea that - only if it really works - could enable the use of those tools without changing them at all. If you ask me to choose, I will take the first one without esitation.
>
> Bodorin
>
> "Laszlo" <sragner@nospam.gmail.com> wrote in message <gn7jj2$de0$1@fred.mathworks.com>...
> > I try to use this:
> > http://www.mathworks.com/matlabcentral/fileexchange/22281
> > and this:
> > http://www.mathworks.com/matlabcentral/fileexchange/21746
> >
> > as examples for understanding Matlab and IE connectivity,
> > however none of them works on my MS Vista.
> > It is possible to start the IE with actxserver but the
> > navigate2 function opens a new tab and loads the page there.
> > If I call handler.ReadyState it returns READYSTATE_UNINITIALIZED until I call
> > handler.Stop. Only then I can call handler.Document and access the
> > initial page (which is obviously a canceled page).
> >
> > How can I switch to the newly opened tabs?
> >
> > None of the two above mentioned programs works BTW due to the same error.
|