Learning Google Apps Script by Ramalingam Ganapathy
Author:Ramalingam Ganapathy [Ganapathy, Ramalingam]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2016-03-17T23:00:00+00:00
Create a new HTML file named Sidebar.html and put the following code in it:
<!DOCTYPE html> <html> <head> <base target="_top"> <link rel="stylesheet" href="https://ssl.gstatic.com/docs/script /css/add-ons1.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/ 1.9.1/jquery.min.js"> </script> </head> <body> <input type="text" id="txt" /> <button class="green" id="btn">Search</button> </body> <script> // On document load, assign click handler to the search // button. $(function() { $('#btn').click(listFiles); }); function listFiles() { this.disabled = true; $('#error,#success').remove(); google.script.run .withSuccessHandler(function(msg,elm){ elm.disabled = false; }) .withFailureHandler(function(err,elm){ elm.disabled = false; showError(err,elm); }) .withUserObject(this) .listDriveFiles($('#txt').val()); } /** * Inserts a div that contains success message after a given * element. * * @param {string} msg - The message to display. * @param {object} element - The element after which to * display the message. * */ function showSuccess(msg,element) { var div = $('<div id="success"><font color="green">' + msg + '</font></div>'); $(element).after(div); } /** * Inserts a div that contains error message after a given * element. * * @param {string} msg - The error message to display. * @param {object} element - The element after which to * display the error. * */ function showError(msg, element) { var div = $('<div id="error" class="error">' + msg + '</div>'); $(element).after(div); } </script> </html>
Download
Learning Google Apps Script by Ramalingam Ganapathy.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Angular for Enterprise-Ready Web Applications by Doguhan Uluca(2229)
Teaching with Google Classroom by Michael Zhang(1292)
Learn TypeScript 3 by Building Web Applications by Sebastien Dubois(1246)
Refactoring TypeScript by James Hickey(1178)
Professional JavaScript by Philip Kirkbride & Vinicius Isola & Siyuan Gao & Hugo Di Francesco(916)
Professional JavaScript for Web Developers by Matt Frisbie(823)
Interactive Data Visualization for the Web by Scott Murray(760)
Data Structures and Algorithms with JavaScript by Michael McMillan(672)
Node.js Design Patterns by Mario Casciaro && Luciano Mammino(634)
PHP, MySQL, & JavaScript All-in-One For Dummies by Richard Blum(584)
Mastering JavaFX 8 Controls by Ebbers Hendrik(583)
JavaScript For Kids For Dummies by Chris Minnick & Eva Holland(575)
Automating System Administration with Perl by David N. Blank-Edelman(548)
JavaScript and JQuery: Interactive Front-End Web Development by Jon Duckett(527)
React Native Blueprints by Emilio Rodriguez Martinez(501)
The Road to GraphQL by Robin Wieruch(483)
JavaScript and AJAX For Dummies by Andy Harris(481)
AWS Lambda in Action: Event-driven serverless applications by Danilo Poccia(477)
Node.js for Embedded Systems by Patrick Mulder(475)
