Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For part 1 of your question, as long as your application is correctly registered to handle that MIME type, then, yes, the browser should [prompt the user and launch your application](<a href="http://msdn.microsoft.com/en-us/library/ms775148(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms775148(VS.85).aspx</a> "MSDN: Handling MIME Types in Internet Explorer").</p> <p>An alternative approach would be a [protocol handler](<a href="http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx</a> "MSDN: Registering an Application to a URL Protocol"). Instead of registering a MIME type for your application, you register a “protocol” that goes in a URL, in place of the <code>http://</code>. If your protocol is called <code>myapp</code>, then you could create links like this:</p> <pre><code>&lt;a href="myapp:data-goes-here-urlencoded"&gt;Link&lt;/a&gt; </code></pre> <p>While you can only pass a small amount of information this way, you could pass a GUID or tag that the application, once launched, can use to retrieve the full document from your server.</p> <p><strong>Edit:</strong> For part 2 of your question, iTunes uses a plug-in. Looking at the code that’s used to redirect to iTunes, you’ll see something like this:</p> <pre><code>&lt;Object id="iTunesDetector" height="1" classID="CLSID:D719897A-B07A-4C0C-AEA9-9B663A28DFCB" width="1"&gt;&lt;/Object&gt; </code></pre> <p>It’s followed by some JavaScript to detect whether that plug-in was loaded. If it was, then iTunes must be installed and it launches iTunes using the <code>itms:</code> protocol (just like the <code>myapp:</code> protocol in the example above).</p> <p>The problem here is, you would have to write a browser plug-in.</p>
    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