Compare Revisions

Web-based protocol handlers

Change Revisions

Revision 338531:

Revision 338531 by ethertank on

Revision 480317:

Revision 480317 by staktrace on

Title:
Web-based protocol handlers
Web-based protocol handlers
Slug:
Web-based_protocol_handlers
Web-based_protocol_handlers
Tags:
"Web-Based Protocol Handlers", "HTML5"
"Web-Based Protocol Handlers", "HTML5"
Content:

Revision 338531
Revision 480317
nn58    <p name="Example">
59      Registering the same protocol handler more than once will p
 >op up a different notification, indicating that the protocol hand
 >ler is already registered. Therefore, it is a good idea to guard 
 >your call to register the protocol handler with a check to see if
 > it is already registered, such as in the example below.
60    </p>
t67    navigator.registerProtocolHandler("fake", "http://starkravingt70    var url = "http://starkravingfinkle.org/projects/wph/handler.
>finkle.org/projects/wph/handler.php?value=%s", "Fake Protocol");>php?value=%s";
71    if (!navigator.isProtocolHandlerRegistered("fake", url)) {
72      navigator.registerProtocolHandler("fake", url, "Fake Protoc
 >ol");
73    }

Back to History