Thread Subject: internet explorer and activex

Subject: internet explorer and activex

From: Laszlo

Date: 14 Feb, 2009 23:20:02

Message: 1 of 3

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.

Subject: internet explorer and activex

From: Nicolaie Popescu-Bodorin

Date: 15 Feb, 2009 12:08:02

Message: 2 of 3

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.

Subject: internet explorer and activex

From: Laszlo

Date: 17 Feb, 2009 13:27:01

Message: 3 of 3

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.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
scripting the i... Nicolaie Popescu-Bodorin 15 Feb, 2009 07:10:09
rssFeed for this Thread

Contact us at files@mathworks.com