WebAPI/WebActivities: Difference between revisions

Jump to navigation Jump to search
m
(→‎More information: add a declarative registration sub-section)
Line 88: Line 88:
   var a = new Activity({ name: "pick", data: { type: "image/png", multiple: false }});
   var a = new Activity({ name: "pick", data: { type: "image/png", multiple: false }});
   a.onsuccess = function() { var image = a.result; doSomethingWithImage(image); });
   a.onsuccess = function() { var image = a.result; doSomethingWithImage(image); });
   a.onsuccess = function() { alert("Failure when trying to pick an image!"); });
   a.onerror = function() { alert("Failure when trying to pick an image!"); });


=== Register to handle an activity ===
=== Register to handle an activity ===
Confirmed users
368

edits

Navigation menu