<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, External communication with Maple(t)</title>
    <link>http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 11:45:50 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 11:45:50 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, External communication with Maple(t)</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, External communication with Maple(t)</title>
      <link>http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet</link>
    </image>
    <item>
      <title>Open a Url</title>
      <link>http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet?ref=Feed:MaplePrimes:External communication with Maple(t):Comments#answer97950</link>
      <itunes:summary>&lt;p&gt;As far as I know, no application would be able to interact with the cookies or JavaScript in a browser once it has launched. This is a security feature of web browsers.&lt;/p&gt;
&lt;p&gt;But what you could do, is when a user clicks a "Close" button in your Maplet, have the Maplet open a url in the browser that indicates the Maplet has completed. Your web application would then be able to read a cookie that your page set before launching the Maplet to identify the user and then continue with whatever server-side code you would like.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;____&lt;/p&gt;
&lt;p&gt;William Spaetzel&lt;br&gt; MaplePrimes Administrator&lt;br&gt; Software Developer, Maplesoft&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;As far as I know, no application would be able to interact with the cookies or JavaScript in a browser once it has launched. This is a security feature of web browsers.&lt;/p&gt;
&lt;p&gt;But what you could do, is when a user clicks a "Close" button in your Maplet, have the Maplet open a url in the browser that indicates the Maplet has completed. Your web application would then be able to read a cookie that your page set before launching the Maplet to identify the user and then continue with whatever server-side code you would like.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;____&lt;/p&gt;
&lt;p&gt;William Spaetzel&lt;br&gt; MaplePrimes Administrator&lt;br&gt; Software Developer, Maplesoft&amp;nbsp;&lt;/p&gt;</description>
      <guid>97950</guid>
      <pubDate>Wed, 20 Oct 2010 01:15:45 Z</pubDate>
      <itunes:author>Will</itunes:author>
      <author>Will</author>
    </item>
    <item>
      <title>Specify a callback</title>
      <link>http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet?ref=Feed:MaplePrimes:External communication with Maple(t):Comments#answer97951</link>
      <itunes:summary>&lt;p&gt;According to the MapleNet documentation&amp;nbsp;it is possible to specify a callback in the html file, i.e., "a&amp;nbsp;JavaScript function to invoke when the Maplet Shutdown command is invoked." See Listing 6 and Table 4 on&amp;nbsp;&lt;a href="http://www.maplesoft.com/documentation_center/maplenet/Publisher/MapleNet%20HTML-4-1.html"&gt;http://www.maplesoft.com/documentation_center/maplenet/Publisher/MapleNet%20HTML-4-1.html&lt;/a&gt;&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;Duncan&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;According to the MapleNet documentation&amp;nbsp;it is possible to specify a callback in the html file, i.e., "a&amp;nbsp;JavaScript function to invoke when the Maplet Shutdown command is invoked." See Listing 6 and Table 4 on&amp;nbsp;&lt;a href="http://www.maplesoft.com/documentation_center/maplenet/Publisher/MapleNet%20HTML-4-1.html"&gt;http://www.maplesoft.com/documentation_center/maplenet/Publisher/MapleNet%20HTML-4-1.html&lt;/a&gt;&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;Duncan&lt;/p&gt;</description>
      <guid>97951</guid>
      <pubDate>Wed, 20 Oct 2010 03:11:08 Z</pubDate>
      <itunes:author>DuncanA</itunes:author>
      <author>DuncanA</author>
    </item>
    <item>
      <title>thanks, update, and a new question</title>
      <link>http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet?ref=Feed:MaplePrimes:External communication with Maple(t):Comments#comment97955</link>
      <itunes:summary>&lt;p&gt;Thanks Duncan and Will, these are helpful.&lt;/p&gt;
&lt;p&gt;I have confirmed that Maple's system (and ssystem) commands can launch a webpage in the default browswer. For example:&lt;/p&gt;
&lt;pre style="padding-left: 30px;"&gt;Windows:&amp;nbsp; ssystem( "start http://www.maplesoft.com/" );&lt;br&gt;Mac:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ssystem( "open http://www.maplesoft.com/" );&lt;br&gt;&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;I still have to identify the correct command for UNIX / Linux, but that should not be difficult to find (When I have the time). Within Maple, I can detect the hardware on which Maple from a little proc that I've been using for a few years:&lt;/p&gt;
&lt;pre&gt;GetVersion:=proc()&lt;br&gt;&amp;nbsp; local S, S1, S3, S4;&lt;br&gt;&amp;nbsp; options `Copyright 2009, Philip B. Yasskin and Douglas B. Meade, Maplets for Calculus`;&lt;br&gt;&amp;nbsp; uses StringTools;&lt;br&gt;&amp;nbsp; S:=interface(version);&lt;br&gt;&amp;nbsp; S:=map( Trim, Split( S, "," ) );&lt;br&gt;&amp;nbsp; S3:=Split(S[3], " " );&lt;br&gt;&amp;nbsp; sprintf("%s (%s)", S[2],S3[-1]);&lt;br&gt;end proc:&lt;br&gt;&lt;br&gt;GetVersion();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Maple 14.00 (XP)"&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;
&lt;p&gt;Since the MapleNet server can serve a Maple worksheet file, I wonder if there is a way - within Maple - to determine if a worksheet is being run with a local copy of Maple or served over the internet with MapleNet?&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks Duncan and Will, these are helpful.&lt;/p&gt;
&lt;p&gt;I have confirmed that Maple's system (and ssystem) commands can launch a webpage in the default browswer. For example:&lt;/p&gt;
&lt;pre style="padding-left: 30px;"&gt;Windows:&amp;nbsp; ssystem( "start http://www.maplesoft.com/" );&lt;br&gt;Mac:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ssystem( "open http://www.maplesoft.com/" );&lt;br&gt;&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;I still have to identify the correct command for UNIX / Linux, but that should not be difficult to find (When I have the time). Within Maple, I can detect the hardware on which Maple from a little proc that I've been using for a few years:&lt;/p&gt;
&lt;pre&gt;GetVersion:=proc()&lt;br&gt;&amp;nbsp; local S, S1, S3, S4;&lt;br&gt;&amp;nbsp; options `Copyright 2009, Philip B. Yasskin and Douglas B. Meade, Maplets for Calculus`;&lt;br&gt;&amp;nbsp; uses StringTools;&lt;br&gt;&amp;nbsp; S:=interface(version);&lt;br&gt;&amp;nbsp; S:=map( Trim, Split( S, "," ) );&lt;br&gt;&amp;nbsp; S3:=Split(S[3], " " );&lt;br&gt;&amp;nbsp; sprintf("%s (%s)", S[2],S3[-1]);&lt;br&gt;end proc:&lt;br&gt;&lt;br&gt;GetVersion();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Maple 14.00 (XP)"&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;
&lt;p&gt;Since the MapleNet server can serve a Maple worksheet file, I wonder if there is a way - within Maple - to determine if a worksheet is being run with a local copy of Maple or served over the internet with MapleNet?&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</description>
      <guid>97955</guid>
      <pubDate>Wed, 20 Oct 2010 10:09:34 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
  </channel>
</rss>