File: test2/test.html

Recommend this page to a friend!
  Classes of Melanie Wehowski   webfan JavaScript Intents Service Server   test2/test.html   Download  
File: test2/test.html
Role: Example script
Content type: text/plain
Description: Example/test
Class: webfan JavaScript Intents Service Server
Register and call services to handle Web intents
Author: By
Last change:
Date: 7 years ago
Size: 877 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://api.webfan.de/api-d/4/js-api/library.js"></script> <script type="text/javascript"> function Test(){ window.navigator.startActivity(new Intent( "com.webfan.intents.test", "text/uri-list", 'http://example.com'), function (data) { alert(JSON.stringify(data)); }); } </script> </head> <body> <b>Test</b> <intent action="com.webfan.intents.test" type="text/uri-list" href="http://webfan.de/cdn/frdl/flow/components/frdl/intent/test.service.html" title="testIntents" disposition="new" icon="http://webfan.de/cdn/frdl/flow/components/frdl/webfan/icon.ico" /> <div webfan-intent-disposition> </div> <button onclick="Test()"> StartActivity </button> </body> </html>