<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157638</link>
    <title>MATLAB Central Newsreader - Calling Javascript function from Matlab</title>
    <description>Feed for thread: Calling Javascript function from Matlab</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 21 Oct 2007 06:03:14 -0400</pubDate>
      <title>Re: Calling Javascript function from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157638#397658</link>
      <author>Michele </author>
      <description>&lt;br&gt;
&amp;gt; You might try using Internet Explorer's COM server object&lt;br&gt;
&amp;gt; (search this forum for examples - there was even one a few&lt;br&gt;
&amp;gt; days ago if I remember correctly). Or use Java's net I/O&lt;br&gt;
&amp;gt; classes. Or use Matlab's browser for that matter.&lt;br&gt;
&lt;br&gt;
Thankw very much for the suggestions.  I started off trying&lt;br&gt;
to do a web call, but the page I need is password protected.&lt;br&gt;
&amp;nbsp;This is similar to the problem I had earlier with urlread.&lt;br&gt;
&amp;nbsp;Unfortunately, unlike urlread, all web seems to do is call&lt;br&gt;
ibrowse(html_file), and ibrowse is a dll.&lt;br&gt;
&lt;br&gt;
I also tried searching for "IE com server object" and it&lt;br&gt;
told me those were all common terms and wouldn't give me any&lt;br&gt;
results.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 20 Oct 2007 16:32:46 -0400</pubDate>
      <title>Re: Calling Javascript function from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157638#397618</link>
      <author>Yair Altman</author>
      <description>"Michele " &amp;lt;denber.nospam@mindspringNOSPAM.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;ffd7nh$j3p$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hmmm - no replies.  Maybe I'm asking the wrong question. &lt;br&gt;
&amp;gt; How about this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there a way in Matlab to generate httpWebRequest and&lt;br&gt;
&amp;gt; httpWebResponse objects?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
You might try using Internet Explorer's COM server object&lt;br&gt;
(search this forum for examples - there was even one a few&lt;br&gt;
days ago if I remember correctly). Or use Java's net I/O&lt;br&gt;
classes. Or use Matlab's browser for that matter.&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href="http://ymasoftware.com"&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 20 Oct 2007 15:43:45 -0400</pubDate>
      <title>Re: Calling Javascript function from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157638#397615</link>
      <author>Michele </author>
      <description>Hmmm - no replies.  Maybe I'm asking the wrong question. &lt;br&gt;
How about this:&lt;br&gt;
&lt;br&gt;
Is there a way in Matlab to generate httpWebRequest and&lt;br&gt;
httpWebResponse objects?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 13 Oct 2007 06:06:14 -0400</pubDate>
      <title>Calling Javascript function from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157638#396513</link>
      <author>Michele </author>
      <description>I have a Z-Wave home automation controller that comes with a&lt;br&gt;
web server that offers up a page with buttons like "ON" and&lt;br&gt;
"OFF" for controlling lights.  These buttons run Javascript&lt;br&gt;
functions so for example, when you mouse-click the OFF&lt;br&gt;
button in the browser it runs this Javacript:&lt;br&gt;
onclick="goOff(1);"&lt;br&gt;
&lt;br&gt;
I want to control the hardware with Matlab, but my only&lt;br&gt;
interface is via the web server.  Is this even possible?  Is&lt;br&gt;
there some way for me to have Matlab execute a "goOff(1)"&lt;br&gt;
command or any of the other Javascript functions defined on&lt;br&gt;
the web page?&lt;br&gt;
&lt;br&gt;
Seems like it ought to be possible, but I'm drawing a blank&lt;br&gt;
on how to get Matlab to run the Javascript.  Any help would&lt;br&gt;
be most appreciated.  Thanks!&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
