Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hyperlink in Web Browser and ActiveXControl
Date: Fri, 24 Aug 2007 14:12:02 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 33
Message-ID: <famovi$l5o$1@fred.mathworks.com>
References: <famka8$5k7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187964722 21688 172.30.248.38 (24 Aug 2007 14:12:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 24 Aug 2007 14:12:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:425422



"Mifano " <nchminh@gmail.com> wrote in message
<famka8$5k7$1@fred.mathworks.com>...
> I have a htm file called "TEMP.htm" which should NOT be
> modified. This file includes the hyperlinks like :
> 
> <a href="matlab: !explorer
>
file:///D:\Dev_MBD_Minh\B_Devpt_fonctions\Setup\SimulinkBestPracticeCGMP.htm#AC">AC_2</a>
> 
> When I open this file by Web Browser in Matlab (command
> web('url') ), the hyperlinks work correctly. However when
> I try to display TEMP.htm on GUI by using: 
> 
> hExp = actxcontrol('Shell.Explorer.2',conSize,gcf);     
> Navigate2(hExp,filepath);  
> 
> this page is displayed but none of hyperlink works. I
> receive the same error when I use Internet Explorer to open
> TEMP.htm. It says that the protocol "matlab" is unknown.
> 
> Could you tell me how to display the TEMP.htm on GUI
correctly?


matlab: is indeed NOT a valid protocol recognized by regular
browsers. When you use web(), Matlab uses an internal
browser to view the requested page - this internal browser
DOES recognize the matlab: protocol. So, if these links are
important for you, keep using web().

Yair Altman
http://ymasoftware.com