Corrected example
authorClaes Nilsson <claes1.nilsson@sonymobile.com>
Wed, 27 Jun 2012 18:20:12 +0200
changeset 130 ac5359e5c362
parent 129 f73be2915d48
child 131 8e581cadeeb6
Corrected example
wi-addendum-local-services/Overview.html
--- a/wi-addendum-local-services/Overview.html	Wed Jun 27 18:00:11 2012 +0200
+++ b/wi-addendum-local-services/Overview.html	Wed Jun 27 18:20:12 2012 +0200
@@ -59,6 +59,9 @@
           //      company: "Your Company", companyURL: "http://example.com/" },
           //],
           
+          //
+          edDraftURI: "http://w3c-test.org/dap/wi-addendum-local-services/",
+          
           // name of the WG
           wg:           "DAP/Web Apps Web Intents task force",
           
@@ -111,22 +114,14 @@
       <pre class="example sh_javascript_dom">
       
         // Create a new intent
-				var intent = new Intent(
-				"http://webintents.org/view",
-				"video/mp4",
-				{ "src":videoCanvas.src, "img": videoCanvas.poster});
+var intent = new Intent( "http://webintents.org/view","video/mp4",{ "src":videoCanvas.src, "img": videoCanvas.poster});
 					
-				// Start intents picker 
-				navigator.startActivity(intent,
-					// On Result
-					function(intentData) { 
-						console.log("player.html: On Result" + intentData);
-					}, 
-					// On Failure
-					function(intentData) { 
-						console.log("player.html: On Failure" + intentData);
-					}
-				);
+// Start intents picker 
+navigator.startActivity(intent,
+  // On Result
+  function(intentData) {console.log("player.html: On Result" + intentData);}, 
+  // On Failure
+  function(intentData) {console.log("player.html: On Failure" + intentData);});
       </pre>
       <p>
         The example below briefly describes the steps taken when a Service on a local network, e.g. UPnP or mDNS, device is discovered and selected by