<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108</link>
    <title>MATLAB Central Newsreader - Hyperlink in Web Browser and ActiveXControl</title>
    <description>Feed for thread: Hyperlink in Web Browser and ActiveXControl</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.de/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 24 Aug 2007 12:52:24 +0000</pubDate>
      <title>Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389200</link>
      <author>Mifano </author>
      <description>I have a htm file called "TEMP.htm" which should NOT be&lt;br&gt;
modified. This file includes the hyperlinks like :&lt;br&gt;
&lt;br&gt;
&amp;lt;a href="matlab: !explorer&lt;br&gt;
file:///D:\Dev_MBD_Minh\B_Devpt_fonctions\Setup\SimulinkBestPracticeCGMP.htm#AC"&amp;gt;AC_2&amp;lt;/a&amp;gt;&lt;br&gt;
&lt;br&gt;
When I open this file by Web Browser in Matlab (command&lt;br&gt;
web('url') ), the hyperlinks work correctly. However when I&lt;br&gt;
try to display TEMP.htm on GUI by using: &lt;br&gt;
&lt;br&gt;
hExp = actxcontrol('Shell.Explorer.2',conSize,gcf);     &lt;br&gt;
Navigate2(hExp,filepath);  &lt;br&gt;
&lt;br&gt;
this page is displayed but none of hyperlink works. I&lt;br&gt;
receive the same error when I use Internet Explorer to open&lt;br&gt;
TEMP.htm.&lt;br&gt;
It says that the protocol "matlab" is unknown.&lt;br&gt;
&lt;br&gt;
Could you tell me how to display the TEMP.htm on GUI correctly?</description>
    </item>
    <item>
      <pubDate>Fri, 24 Aug 2007 14:12:02 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389220</link>
      <author>Yair Altman</author>
      <description>"Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;famka8$5k7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a htm file called "TEMP.htm" which should NOT be&lt;br&gt;
&amp;gt; modified. This file includes the hyperlinks like :&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;a href="matlab: !explorer&lt;br&gt;
&amp;gt;&lt;br&gt;
file:///D:\Dev_MBD_Minh\B_Devpt_fonctions\Setup\SimulinkBestPracticeCGMP.htm#AC"&amp;gt;AC_2&amp;lt;/a&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When I open this file by Web Browser in Matlab (command&lt;br&gt;
&amp;gt; web('url') ), the hyperlinks work correctly. However when&lt;br&gt;
&amp;gt; I try to display TEMP.htm on GUI by using: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; hExp = actxcontrol('Shell.Explorer.2',conSize,gcf);     &lt;br&gt;
&amp;gt; Navigate2(hExp,filepath);  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; this page is displayed but none of hyperlink works. I&lt;br&gt;
&amp;gt; receive the same error when I use Internet Explorer to open&lt;br&gt;
&amp;gt; TEMP.htm. It says that the protocol "matlab" is unknown.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Could you tell me how to display the TEMP.htm on GUI&lt;br&gt;
correctly?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
matlab: is indeed NOT a valid protocol recognized by regular&lt;br&gt;
browsers. When you use web(), Matlab uses an internal&lt;br&gt;
browser to view the requested page - this internal browser&lt;br&gt;
DOES recognize the matlab: protocol. So, if these links are&lt;br&gt;
important for you, keep using web().&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Fri, 24 Aug 2007 14:26:05 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389222</link>
      <author>Mifano </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;lt;famovi$l5o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; matlab: is indeed NOT a valid protocol recognized by regular&lt;br&gt;
&amp;gt; browsers. When you use web(), Matlab uses an internal&lt;br&gt;
&amp;gt; browser to view the requested page - this internal browser&lt;br&gt;
&amp;gt; DOES recognize the matlab: protocol. So, if these links are&lt;br&gt;
&amp;gt; important for you, keep using web().&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Thank you Yair Altman. &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Theses links are important cause they link to Simulink&lt;br&gt;
models as well, so I think I must use web(). &lt;br&gt;
&lt;br&gt;
The question is: Is there some way to display a web page by&lt;br&gt;
using web() on GUI? &lt;br&gt;
&lt;br&gt;
Thanks a lot.</description>
    </item>
    <item>
      <pubDate>Sat, 25 Aug 2007 19:57:27 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389372</link>
      <author>Yair Altman</author>
      <description>"Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;famppt$4q8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;lt;snip&amp;gt;Is there some way to display a web page by&lt;br&gt;
&amp;gt; using web() on GUI? &lt;br&gt;
&lt;br&gt;
Not easily: web() opens a separate browser window which you&lt;br&gt;
cannot embed in a GUI. However, you can use the following&lt;br&gt;
undocumented hack to do this:&lt;br&gt;
&lt;br&gt;
url = 'www.cnn.com';&lt;br&gt;
browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
pos = [10,10,400,300];&lt;br&gt;
javacomponent(browser,pos,gcf);&lt;br&gt;
&lt;br&gt;
You can add toolbar etc. by activating methods on the&lt;br&gt;
browser object as follows (type "methodsview(browser)" for&lt;br&gt;
the full list):&lt;br&gt;
&lt;br&gt;
browser.addToolbar;&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 27 Aug 2007 07:04:32 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389460</link>
      <author>Mifano </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;lt;faq1j7$pj0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;famppt$4q8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;snip&amp;gt;Is there some way to display a web page by&lt;br&gt;
&amp;gt; &amp;gt; using web() on GUI? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not easily: web() opens a separate browser window which you&lt;br&gt;
&amp;gt; cannot embed in a GUI. However, you can use the following&lt;br&gt;
&amp;gt; undocumented hack to do this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; url = 'www.cnn.com';&lt;br&gt;
&amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can add toolbar etc. by activating methods on the&lt;br&gt;
&amp;gt; browser object as follows (type "methodsview(browser)" for&lt;br&gt;
&amp;gt; the full list):&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browser.addToolbar;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Thank you, that's really helpful.</description>
    </item>
    <item>
      <pubDate>Wed, 29 Aug 2007 08:10:41 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389814</link>
      <author>Mifano </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;lt;faq1j7$pj0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;famppt$4q8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;snip&amp;gt;Is there some way to display a web page by&lt;br&gt;
&amp;gt; &amp;gt; using web() on GUI? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not easily: web() opens a separate browser window which you&lt;br&gt;
&amp;gt; cannot embed in a GUI. However, you can use the following&lt;br&gt;
&amp;gt; undocumented hack to do this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; url = 'www.cnn.com';&lt;br&gt;
&amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can add toolbar etc. by activating methods on the&lt;br&gt;
&amp;gt; browser object as follows (type "methodsview(browser)" for&lt;br&gt;
&amp;gt; the full list):&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browser.addToolbar;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank you for your reply. I followed your instruction and&lt;br&gt;
succeeded to embed Web browser to GUI. &lt;br&gt;
However, I didn't found any document about the class&lt;br&gt;
com.mathworks.mlwidgets.html.HTMLBrowserPanel. &lt;br&gt;
The methodsview gives me few information about syntax of the&lt;br&gt;
class's functions. &lt;br&gt;
Could you tell me where to find these documents? Actually,&lt;br&gt;
I'm looking for the refresh and resize functions of this web&lt;br&gt;
page.  &lt;br&gt;
Thank you very much.</description>
    </item>
    <item>
      <pubDate>Wed, 29 Aug 2007 08:51:29 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#389815</link>
      <author>Yair Altman</author>
      <description>&amp;gt; "Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;snip&amp;gt;you can use the following&lt;br&gt;
&amp;gt; &amp;gt; undocumented hack to do this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However, I didn't found any document about the class&lt;br&gt;
&amp;gt; com.mathworks.mlwidgets.html.HTMLBrowserPanel. &lt;br&gt;
&amp;gt; Could you tell me where to find these documents?&lt;br&gt;
&lt;br&gt;
As I said above, it's UNDOCUMENTED (which means, well,&lt;br&gt;
there's no documentation). It's an internal Matlab class&lt;br&gt;
that is not meant to be used by anyone outside MathWorks.&lt;br&gt;
You can use it, but you're on your own here...&lt;br&gt;
&lt;br&gt;
&amp;gt; I'm looking for the refresh and resize functions of this&lt;br&gt;
&amp;gt; web page.  &lt;br&gt;
&lt;br&gt;
You can get/set the browser object properties in the regular&lt;br&gt;
Matlab fashion, using the get/set functions:&lt;br&gt;
&lt;br&gt;
browser=com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
get(browser)&lt;br&gt;
set(browser,propertyName,newValue);&lt;br&gt;
&lt;br&gt;
You can also do the same for the objects returned by the&lt;br&gt;
javacomponent function (including updating the component's&lt;br&gt;
position, units etc.)&lt;br&gt;
&lt;br&gt;
Yair Altman</description>
    </item>
    <item>
      <pubDate>Thu, 30 Aug 2007 09:15:32 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#390031</link>
      <author>Mifano </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fb3c2h$kf9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; "Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;lt;snip&amp;gt;you can use the following&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; undocumented hack to do this:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; However, I didn't found any document about the class&lt;br&gt;
&amp;gt; &amp;gt; com.mathworks.mlwidgets.html.HTMLBrowserPanel. &lt;br&gt;
&amp;gt; &amp;gt; Could you tell me where to find these documents?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; As I said above, it's UNDOCUMENTED (which means, well,&lt;br&gt;
&amp;gt; there's no documentation). It's an internal Matlab class&lt;br&gt;
&amp;gt; that is not meant to be used by anyone outside MathWorks.&lt;br&gt;
&amp;gt; You can use it, but you're on your own here...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'm looking for the refresh and resize functions of this&lt;br&gt;
&amp;gt; &amp;gt; web page.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can get/set the browser object properties in the regular&lt;br&gt;
&amp;gt; Matlab fashion, using the get/set functions:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browser=com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; get(browser)&lt;br&gt;
&amp;gt; set(browser,propertyName,newValue);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can also do the same for the objects returned by the&lt;br&gt;
&amp;gt; javacomponent function (including updating the component's&lt;br&gt;
&amp;gt; position, units etc.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank you for you reply. Could you please answer to some&lt;br&gt;
questions related:&lt;br&gt;
&lt;br&gt;
1) Problem 1&lt;br&gt;
&lt;br&gt;
I tried this code sample:&lt;br&gt;
&lt;br&gt;
figure(1)&lt;br&gt;
url = 'www.google.com';&lt;br&gt;
browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
pos = [10,10,400,300];&lt;br&gt;
jCompObj = javacomponent(browser,pos,gcf);&lt;br&gt;
&lt;br&gt;
% Get current dimension &lt;br&gt;
jCompObj.Width&lt;br&gt;
jCompObj.Height&lt;br&gt;
&lt;br&gt;
% Change dimension &lt;br&gt;
jCompObj.setSize(10,10) ;&lt;br&gt;
&lt;br&gt;
% Verify dimension &lt;br&gt;
jCompObj.Width&lt;br&gt;
jCompObj.Height&lt;br&gt;
&lt;br&gt;
The new dimension of browser now is 10x10 but on figure(1),&lt;br&gt;
there's nothing changed (the dimension of web page is always&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;400x300). &lt;br&gt;
&lt;br&gt;
Could you tell me how to update the modification of these&lt;br&gt;
properties.&lt;br&gt;
&lt;br&gt;
2) Problem 2&lt;br&gt;
&lt;br&gt;
Some time I have to modify the file in 'url'. How can I&lt;br&gt;
"refresh" the web page on figure? &lt;br&gt;
&lt;br&gt;
Thank you very much</description>
    </item>
    <item>
      <pubDate>Thu, 30 Aug 2007 14:46:02 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#390081</link>
      <author>Yair Altman</author>
      <description>&amp;gt; 1) Problem 1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; figure(1)&lt;br&gt;
&amp;gt; url = 'www.google.com';&lt;br&gt;
&amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; jCompObj = javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Get current dimension &lt;br&gt;
&amp;gt; jCompObj.Width&lt;br&gt;
&amp;gt; jCompObj.Height&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Change dimension &lt;br&gt;
&amp;gt; jCompObj.setSize(10,10) ;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Verify dimension &lt;br&gt;
&amp;gt; jCompObj.Width&lt;br&gt;
&amp;gt; jCompObj.Height&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The new dimension of browser now is 10x10 but on figure(1),&lt;br&gt;
&amp;gt; there's nothing changed (the dimension of web page is always&lt;br&gt;
&amp;gt;     400x300). &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Could you tell me how to update the modification of these&lt;br&gt;
&amp;gt; properties.&lt;br&gt;
&lt;br&gt;
[jCompObj,hCompObj] = javacomponent(browser,pos,gcf);&lt;br&gt;
set(hCompObj,'pos',[30,30,600,200]);&lt;br&gt;
set(hCompObj, 'units','normalized', 'pos',[.1,.2,.3,.4]);  %&lt;br&gt;
better&lt;br&gt;
&lt;br&gt;
&amp;gt; 2) Problem 2&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Some time I have to modify the file in 'url'. How can I&lt;br&gt;
&amp;gt; "refresh" the web page on figure? &lt;br&gt;
&lt;br&gt;
browser.setCurrentLocation('www.cnn.com');&lt;br&gt;
&lt;br&gt;
Yair Altman</description>
    </item>
    <item>
      <pubDate>Thu, 06 Dec 2007 20:35:57 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#404979</link>
      <author>Jan Paskarbeit</author>
      <description>Hello!&lt;br&gt;
How can I delete the browserobject again? When I load an&lt;br&gt;
automatically reloading webpage (&amp;lt;body&lt;br&gt;
onLoad="setTimeout('window.location.reload()', 1000)"&amp;gt;) and&lt;br&gt;
close the figure, the cursor still changes once per second&lt;br&gt;
into the hour glass cursor, so I guess that the browser&lt;br&gt;
still exists tough the figure is closed. &lt;br&gt;
Thanks, &lt;br&gt;
Jan </description>
    </item>
    <item>
      <pubDate>Mon, 12 Jan 2009 20:45:04 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#621099</link>
      <author>Yair Altman</author>
      <description>&amp;gt; How can I delete the browserobject again? When I load an&lt;br&gt;
&amp;gt; automatically reloading webpage (&amp;lt;body&lt;br&gt;
&amp;gt; onLoad="setTimeout('window.location.reload()', 1000)"&amp;gt;) and&lt;br&gt;
&amp;gt; close the figure, the cursor still changes once per second&lt;br&gt;
&amp;gt; into the hour glass cursor, so I guess that the browser&lt;br&gt;
&amp;gt; still exists tough the figure is closed. &lt;br&gt;
&lt;br&gt;
clear the browserobject handle - closing the figure does not necessarily delete the handle and if you still have it in your workspace then it will still be available, even without a figure window.</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 07:58:04 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#624205</link>
      <author>karthikeyan </author>
      <description>"Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message &amp;lt;fatt20$cuj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;faq1j7$pj0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; "Mifano " &amp;lt;nchminh@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;famppt$4q8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;lt;snip&amp;gt;Is there some way to display a web page by&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; using web() on GUI? &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Not easily: web() opens a separate browser window which you&lt;br&gt;
&amp;gt; &amp;gt; cannot embed in a GUI. However, you can use the following&lt;br&gt;
&amp;gt; &amp;gt; undocumented hack to do this:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; url = 'www.cnn.com';&lt;br&gt;
&amp;gt; &amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; &amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; &amp;gt; javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You can add toolbar etc. by activating methods on the&lt;br&gt;
&amp;gt; &amp;gt; browser object as follows (type "methodsview(browser)" for&lt;br&gt;
&amp;gt; &amp;gt; the full list):&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; browser.addToolbar;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you, that's really helpful.&lt;br&gt;
&lt;br&gt;
Hi Yair Altman,&lt;br&gt;
&lt;br&gt;
I have been creating the Matlab GUI in which to display the html file, the file contains some matlab command in the few lines.&lt;br&gt;
&lt;br&gt;
Initially, I was working using activexcontrol where i found it difficult to invoke matlab commands. &lt;br&gt;
&lt;br&gt;
Recently, I saw your reply using ".HTMLBrowserPanel" which will resolve my issue but i need some action in addition to the display the html file.&lt;br&gt;
&lt;br&gt;
1. I need to know the way to get the selected text in the html file. I mean that if i would select some text using mouse in the displayed html file. How do i get it? what's the way from browser data structure.&lt;br&gt;
&lt;br&gt;
2. If i display the multiple html files in the same browser, I need to switch between the html file without refreshing(It's mandatory). Of course, I can addToolbar where i can click Back and Forward buttons, But i need an API to invoke Back and Forward&lt;br&gt;
&lt;br&gt;
Thanks in advance</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 08:49:03 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#624208</link>
      <author>Yair Altman</author>
      <description>&amp;gt; 1. I need to know the way to get the selected text in the html file. I mean that if i would select some text using mouse in the displayed html file. How do i get it? what's the way from browser data structure.&lt;br&gt;
&lt;br&gt;
url = 'www.cnn.com';&lt;br&gt;
browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
pos = [10,10,400,300];&lt;br&gt;
javacomponent(browser,pos,gcf);&lt;br&gt;
&lt;br&gt;
browserCanvas = browser.getHTMLRenderer.getComponent(0).getComponent(0);&lt;br&gt;
browserCanvas.getSelectedText;&lt;br&gt;
&lt;br&gt;
&amp;gt; 2. If i display the multiple html files in the same browser, I need to switch between the html file without refreshing(It's mandatory). Of course, I can addToolbar where i can click Back and Forward buttons, But i need an API to invoke Back and Forward&lt;br&gt;
&lt;br&gt;
browser.setCurrentLocation('www.bbc.com');&lt;br&gt;
browserCanvas.goBack;      % =&amp;gt;CNN, use browserCanvas.getURL to check&lt;br&gt;
browserCanvas.goForward;  % =&amp;gt;BBC, use browserCanvas.getURL to check&lt;br&gt;
&lt;br&gt;
The exact methods/properties of browserCanvas may depend on your default browser.&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 14:32:01 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#624279</link>
      <author>karthikeyan </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &amp;lt;glmhpv$7if$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 1. I need to know the way to get the selected text in the html file. I mean that if i would select some text using mouse in the displayed html file. How do i get it? what's the way from browser data structure.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; url = 'www.cnn.com';&lt;br&gt;
&amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browserCanvas = browser.getHTMLRenderer.getComponent(0).getComponent(0);&lt;br&gt;
&amp;gt; browserCanvas.getSelectedText;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 2. If i display the multiple html files in the same browser, I need to switch between the html file without refreshing(It's mandatory). Of course, I can addToolbar where i can click Back and Forward buttons, But i need an API to invoke Back and Forward&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browser.setCurrentLocation('www.bbc.com');&lt;br&gt;
&amp;gt; browserCanvas.goBack;      % =&amp;gt;CNN, use browserCanvas.getURL to check&lt;br&gt;
&amp;gt; browserCanvas.goForward;  % =&amp;gt;BBC, use browserCanvas.getURL to check&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The exact methods/properties of browserCanvas may depend on your default browser.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Hi Yair Altman,&lt;br&gt;
&lt;br&gt;
Yes, It's work well. But if i would load the multiple(more than six) html files, it's not working exactly. I just added pause command before loading(using setCurrentLocation) each file.&lt;br&gt;
&lt;br&gt;
I couldn't see the location bar in the browser I feel it would be better to view the file URL in location bar( or is it an address bar) as there are multiple files. </description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 14:36:02 +0000</pubDate>
      <title>Re: Hyperlink in Web Browser and ActiveXControl</title>
      <link>http://www.mathworks.de/matlabcentral/newsreader/view_thread/155108#624280</link>
      <author>karthikeyan </author>
      <description>"Yair Altman" &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &amp;lt;glmhpv$7if$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 1. I need to know the way to get the selected text in the html file. I mean that if i would select some text using mouse in the displayed html file. How do i get it? what's the way from browser data structure.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; url = 'www.cnn.com';&lt;br&gt;
&amp;gt; browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);&lt;br&gt;
&amp;gt; pos = [10,10,400,300];&lt;br&gt;
&amp;gt; javacomponent(browser,pos,gcf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browserCanvas = browser.getHTMLRenderer.getComponent(0).getComponent(0);&lt;br&gt;
&amp;gt; browserCanvas.getSelectedText;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 2. If i display the multiple html files in the same browser, I need to switch between the html file without refreshing(It's mandatory). Of course, I can addToolbar where i can click Back and Forward buttons, But i need an API to invoke Back and Forward&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; browser.setCurrentLocation('www.bbc.com');&lt;br&gt;
&amp;gt; browserCanvas.goBack;      % =&amp;gt;CNN, use browserCanvas.getURL to check&lt;br&gt;
&amp;gt; browserCanvas.goForward;  % =&amp;gt;BBC, use browserCanvas.getURL to check&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The exact methods/properties of browserCanvas may depend on your default browser.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Hi Yair Altman,&lt;br&gt;
&lt;br&gt;
Yes, It's work well. But if i would load the multiple(more than six) html files, it's not working exactly. I just added pause command before loading(using setCurrentLocation) each file.&lt;br&gt;
&lt;br&gt;
I couldn't see the location bar in the browser I feel it would be better to view the file URL in location bar( or is it an address bar) as there are multiple files. </description>
    </item>
  </channel>
</rss>
