Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Internet protocols aren't all about browsers.</p> <p><strong>mailto:</strong> causes an action in an email program (e.g. start a new email)</p> <p><strong>ftp:</strong> causes an action in an FTP program (which <em>might</em> be integrated into a web browser or Windows Explorer)</p> <p><strong>gopher:</strong> (well, <a href="http://en.wikipedia.org/wiki/Gopher_%28protocol%29" rel="nofollow">that's</a> not really prevalent anymore)</p> <p><strong>myapp://</strong> will cause your (C#) app to start running. At that point, it can do anything a C# app can do. One thing it could choose to do is create a .html file on disk, and use</p> <pre><code>Process.Start("file://Path/To/My.html") </code></pre> <p>to cause the default web browser to open the document it just created.</p> <p><strong>UPDATE</strong></p> <p>You can certainly have your myapp:// protocol handler send an update to the web server that hosts the page in question. My assumption here is that the myapp:// handler is running on a client machine, and there is a web server on a different URL <a href="http://mydomain.com" rel="nofollow">http://mydomain.com</a> serving a page that includes a myapp:// reference.</p> <ol> <li>Web server renders a page that includes both a myapp:// URL and Ajax code to periodically query the web server for updates to part of the HTML body.</li> <li>User clicks the myapp:// URL</li> <li>Protocol handler runs</li> <li>Protocol handler sends an update to the web server, e.g. <code>http://mydomain.com?user=joe&amp;result=123</code></li> <li>Web server uses <code>?user=joe&amp;result=123</code> to update response next time the Ajax callback is initiated</li> <li>Ajax callback gets updated data for page from web server, updates page.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload