Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference
File Pickers | 99 } </script> </head> <body onload="doLoad( )"> <input id="btnBrowse" type="button" value=" ...
100 | Chapter 4: AIR Mini-Cookbook { alert( file.nativePath ); } Auseful property of the event object that is sent to the han- d ...
Service and Server Monitoring | 101 </head> <body onload="doLoad( )"> <input id="btnBrowse" type="button" value=" ...
102 | Chapter 4: AIR Mini-Cookbook constructor takes a String that represents the URL service endpoint to query. TheURLRequestcl ...
Service and Server Monitoring | 103 function doStatus( event ) { var elem = document.createElement( "div" ); elem.innerText = mo ...
104 | Chapter 4: AIR Mini-Cookbook var monitor = new window.runtime.air.net.SocketMonitor( host, port ); TheSocketMonitorclass w ...
Online/Offline | 105 document.body.appendChild( elem ); } </script> </head> <body onload="doLoad( )"> </bod ...
106 | Chapter 4: AIR Mini-Cookbook Once we have specified these arguments in the open method, we will call the send method. Thes ...
Online/Offline | 107 if( file.exists ) { var fileStream = new air.FileStream( ); fileStream.open( file, air.FileMode.READ ); dat ...
108 | Chapter 4: AIR Mini-Cookbook if( xml.readyState == 4 ) // the request is complete { var file = air.File. applicationStorag ...
Drag and Drop | 109 TIP Adobe AIR’s support for drag and drop is based on the WebKit implementation. You can find more informati ...
110 | Chapter 4: AIR Mini-Cookbook The typical flow for HTML elements that want to receive drop operations are as follows: 1.Use ...
Drag and Drop | 111 IfsetDatais called for a MIME type that already exists on the element being dragged, that data will be overw ...
112 | Chapter 4: AIR Mini-Cookbook <html> <head> <title>HTML Drag Test</title> <script src="AIRAliase ...
Embedded Database | 113 </script> </head> <body> <div style="margin: 0px auto; width: 80%; background-color ...
114 | Chapter 4: AIR Mini-Cookbook Currently, when working with a local database from AIR, all transactions are asynchronous. Th ...
Embedded Database | 115 Database transactions happen asynchronously, which means an application must first create and register a ...
116 | Chapter 4: AIR Mini-Cookbook { alert( "You are now connected to the database." ); } function doLoad() { var file = air.Fil ...
Embedded Database | 117 SQLStatementclass executes commands against a specified database. As database transactions all happen as ...
118 | Chapter 4: AIR Mini-Cookbook "last TEXT )"; stmt.execute(); In this case, aCREATE TABLE statement has been applied to the ...
«
1
2
3
4
5
6
7
8
9
»
Free download pdf