Getting Started With the JavaScript API

Slides:



Advertisements
Similar presentations
House-Keeping Internet Silence Cell Phones Facilities Please Clean-Up.
Advertisements

Callback-oriented asynchrony, CommonJS Promise/A, Promises in Q, Promises in jQuery George Georgiev Telerik Software Academy academy.telerik.com Technical.
CareerBuilder Tableau Day Brian Montgomery Tableau Software.
Interesting facts about node.js.  Asynchronous I/O  How do they do that?..threads (usually) What do Web Servers do?
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
1 Ajax. 2 What’s Ajax? AJAX is a combination of a few technologies that has come together in the past few years AJAX used to be an acronym for Asynchronous.
[speechworks template] prepared by: BrownBoots Interactive, Inc.
Introduction The SDU Webship program is divided into two parts: the first semester of the course is spent learning how to code webpages using a variety.
Using Promise Patterns with JavaScript, jQuery, and the SharePoint 2013 App Model Doug Hemminger SharePoint Solutions Architect, Protiviti.
Intro to JavaScript. Use the tag to tell the browser you are writing JavaScript.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
Win32 Programming Lesson 1: Why We’re All Here. Why We’re Here…  Okay, maybe that’s too grandiose  Windows – in particular Win32 Thirty-what?  What.
Deep Dive on SharePoint Ribbon Development and Extensibility Chris O’Brien SharePoint MVP Independent OSP433.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
Microsoft Virtual Academy Stacey Mulcahy | Technical Evangelist Christopher Harrison | Content Developer.
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
Ajax for Dynamic Web Development Gregory McChesney.
Web Technologies Lecture 7 Synchronous vs. asynchronous.
SE-2840 Dr. Mark L. Hornick 1 Introduction to Ajax Asynchronous Javascript And XML.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Intro Web Applications Andrew Benson – ScottyLabs – CrashCourse F14.
PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
Promises and Asynchronous Programming Callback-oriented asynchrony, CommonJS Promise/A, Promises in Q, Promises in jQuery SoftUni Team Technical Trainers.
Windows 8: XAML or HTML? Karl Davies-Barrett CEE DPE Tech Lead, Microsoft 
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
C# Present and Future Marita Paletsou Software Engineer.
WEB SECURITY WEEK 1 Computer Security Group University of Texas at Dallas.
Section title This presentation is designed to help you talk to young people about Drive. The notes included aren’t intended to be read out, they are for.
CSE 154 Lecture 11: AJAx.
BIT116: Scripting Lecture 06
Google Web Toolkit Tutorial
Lecture Bells and Whistles.
Introduction to Redux Header Eric W. Greene Microsoft Virtual Academy
Promises and Asynchronous Programming
Presents RAP Week 6 MARCH 11TH 2013.
Form Validation and AJAX
Creating Geoprocessing Services
WEBINAR “Automation of document generation and document processing with AutoMerge” Atlanta, 10/21/2013 Clint Higley I would like to welcome everyone to.
Introduction to JavaScript
CSE 154 Lecture 11: AJAx.
Geoprocessing with ArcGIS for Server
Creating Windows Store Apps Using Visual Basic
A second look at JavaScript
CSE 154 Lecture 22: AJAX.
Going to a Restaurant Please see the How to Use Personalized Stories document for more information on how to edit and display this PowerPoint presentation.
TechEd /9/2018 4:17 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
图片墨迹时尚商务PPT模板 I’m a great place for you to tell a story and let your users know a little more about you. I’m a great place for you to tell a story and.
Build data-driven collection and list apps using ListView in HTML5
Hold up, wait a minute, let me put some async in it
BIT116: Scripting Functions.
A Beginners Session to Ajax
Lecture 12: The Fetch Api and AJAx
Introduction to JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
Lecture 12: The Fetch Api and AJAx
Finding and using code online
Louis DeJardin | Software Developer, Microsoft
Top 10 ArcGIS API for JavaScript Skills
Introduction to AJAX and JSON
Writing Focus: Sequence Story
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
PHP and JSON Topics Review JSON.
Blazor A new framework for browser-based .NET apps Ryan Nowak
Other options Note: Style switcher.
Promises.
Sample Slide Telling stories helped to pass the time and it was fun.
Presentation transcript:

Getting Started With the JavaScript API With interaction, you can make an existing viz have more meaning.

Who isn’t this talk for? People who are familiar with the JavaScript API

What can I do? Interact with the viz programmatically, on a webpage that you made. Build an app. Tell a story. Provide examples here for each of these.

How do I start? 1. Build your webpage

How do I start? 1. Build your webpage 2. Reference the API JavaScript <script src=http://your-server-here/javascripts/api/tableau_v8.js>

How do I start? 1. Build your webpage 2. Reference the API JavaScript <script src=http://your-server-here/javascripts/api/tableau_v8.js> 3. Embed a viz using the JavaScript API.

Demo Time! This demo will cover loading a viz and all of the options you can use to do that, including onInteractive.

Now what? YAY I HAVE A VIZ! Great, but Tableau Server gets you that already. Let’s do the fun stuff now.

Interaction! Switching tabs Selecting Filtering

More demo time! This demo will cover how to filter, select and switch tabs.

JavaScript API Tutorial Walkthrough on our website

Geeking out with JavaScript First, how many of you have written JavaScript before? Here are some things that you might want to know about when you go to write code. I can go as deep as the audience wants at this point into how JS works. I’ll let them direct it, outside of these slides.

Debugging http://your-server-here/javascripts/api/tableau_v8.debug.js> Maybe a debugging demo, if people want it? Is that interesting?

Synchronous vs. Async If it’s asynchronous, it ends in Async Async calls say “go do this and report back” Sync calls say “do this while I wait” Ask the audience at this point if they know what ‘asynchronous’ means. I have no idea if they will or not.

The fun stuff is Asynchronous If you want asynchronous things to happen in an order, you need to chain them together. It looks a little like this: sheet.applyFilterAsync(a, b ,c)   .then(function () {     return sheet.selectMarksAsync(x, y);   }) .then(function() { return sheet.applyRangeFilterAsync(r, v); })   .otherwise(throwError) .always(doSomethingElse); Talk about how this follows the Promises/A Standard. Ask if people want to know how this works (async metods return an object called a Promise, which has a then() method and maybe lets the function you pass to then() take a parameter)

The fun stuff is Asynchronous Or, you can use event handlers, like this: handler = function(marksEvent) { // do some stuff here when marks are selected } viz.addEventListener( tableauSoftware.TableauEventName.marksselection, handler); // or maybe you can let the user select marks sheet.selectMarksAsync(x, y, tableauSoftware.SelectionUpdateType.REPLACE);

Async Demo Time Show what you can do with Promises/A and how control flow works.

Want to know more? Go to these sessions! Using the JavaScript API at the National Heritage Academies (Today, 4 – 5) You did WHAT with the JavaScript API? (Tomorrow, 3:15 – 4:15) Infinite Interactivity with the JavaScript API (Wednesday, 9:45 – noon)