SlideShare a Scribd company logo
GWT
developing web applications
with java(script)




          Ewa Maciaś, emacias@google.com, 18-04-
                       2012 Kraków
GWT - developing web applications with java (script) - Ewa Maciaś
var jstiming = parent.jstiming;
 function click(m) {
   jstiming && jstiming.load.tick(m);
 }
 function _B_prog(pct) {
   if (parent['OZ_prog'] !== undefined) {
     parent['OZ_prog'] = pct;
   }
 }
{} + [] = ?
empty object + empty array = ?
{}
empty object
[]
empty array
0
zero
GWT - developing web applications with java (script) - Ewa Maciaś
GWT - developing web applications with java (script) - Ewa Maciaś
GWT - developing web applications with java (script) - Ewa Maciaś
AJAX
function ajaxFunction(){
  var xmlHttp;
  try{
    // Creating XMLHttpRequest object (Gecko engine, WebKit, Presto, Trident w IE>6)
    xmlHttp=new XMLHttpRequest();
  } catch(e) {
    // Catches exception if JavaScript does not have XMLHttpRequest
    try {
      // Creating ActiveXObject object, for ActiveX IE console
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try {
        // Creating ActiveXObject object, other versions of IE
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        // Show an error on case of support for XMLHttpRequest
        alert("Your browser does not support AJAX!");
        return false;
      }
    }
  }
  return xmlHttp;
 }
package com.example.foo.client;

import com.google.gwt.user.client.rpc.RemoteService;

public interface MyService extends RemoteService {
  public String myMethod(String s);
}

More Related Content

PDF
Do something in 5 with gas 9-copy between databases with oauth2
PDF
VBA API for scriptDB primer
PDF
The evolution of java script asynchronous calls
PPTX
Goa tutorial
PDF
BigQuery JavaScript User-Defined Functions by THOMAS PARK and FELIPE HOFFA at...
PPTX
El bueno, el feo y el malo
PPT
AngularJS and SPA
KEY
The Return of JavaScript: 3 Open-Source Projects that are driving JavaScript'...
Do something in 5 with gas 9-copy between databases with oauth2
VBA API for scriptDB primer
The evolution of java script asynchronous calls
Goa tutorial
BigQuery JavaScript User-Defined Functions by THOMAS PARK and FELIPE HOFFA at...
El bueno, el feo y el malo
AngularJS and SPA
The Return of JavaScript: 3 Open-Source Projects that are driving JavaScript'...

What's hot (13)

PDF
Structured Testing Framework
PPTX
Correcting Common Async/Await Mistakes in .NET
PDF
Intoroduce milkcocoa for english
PDF
Fundamental Node.js (Workshop bersama Front-end Developer GITS Indonesia, War...
PDF
Cloudcamp scotland - Using cloud without losing control
PDF
Your First Gutenberg Block
DOC
Qtp change excel cell c olor
PDF
#Gophercon Talk by Smita Vijayakumar - Go's Context Library
PPTX
Synapse india dotnet development overloading operater part 4
PPTX
BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...
PDF
End to end todo list app with NestJs - Angular - Redux & Redux Saga
PPTX
10 ways to make your code rock
PDF
Nestjs MasterClass Slides
Structured Testing Framework
Correcting Common Async/Await Mistakes in .NET
Intoroduce milkcocoa for english
Fundamental Node.js (Workshop bersama Front-end Developer GITS Indonesia, War...
Cloudcamp scotland - Using cloud without losing control
Your First Gutenberg Block
Qtp change excel cell c olor
#Gophercon Talk by Smita Vijayakumar - Go's Context Library
Synapse india dotnet development overloading operater part 4
BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...
End to end todo list app with NestJs - Angular - Redux & Redux Saga
10 ways to make your code rock
Nestjs MasterClass Slides
Ad

Similar to GWT - developing web applications with java (script) - Ewa Maciaś (20)

PDF
Building Applications Using Ajax
PPT
jQuery for beginners
PPSX
Dynamic webpages using AJAX & JSON
PPT
mukesh
PDF
HTML5 APIs - Where no man has gone before! - Altran
PPT
Ajax
PPTX
Ajax for dummies, and not only.
PPT
Ajax Fundamentals Web Applications
PDF
A More Flash Like Web?
PDF
HTML5 - Daha Flash bir web?
PPTX
AJAX.pptx
PDF
How to make Ajax work for you
PPT
Ajax ppt
PPT
Ajax Ppt
PDF
Javascript Frameworks for Joomla
KEY
PDF
PPT
Ajax.ppt
KEY
Ajax - a quick introduction
Building Applications Using Ajax
jQuery for beginners
Dynamic webpages using AJAX & JSON
mukesh
HTML5 APIs - Where no man has gone before! - Altran
Ajax
Ajax for dummies, and not only.
Ajax Fundamentals Web Applications
A More Flash Like Web?
HTML5 - Daha Flash bir web?
AJAX.pptx
How to make Ajax work for you
Ajax ppt
Ajax Ppt
Javascript Frameworks for Joomla
Ajax.ppt
Ajax - a quick introduction
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Modernizing your data center with Dell and AMD
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Monthly Chronicles - July 2025
MYSQL Presentation for SQL database connectivity
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Modernizing your data center with Dell and AMD
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”

GWT - developing web applications with java (script) - Ewa Maciaś

  • 1. GWT developing web applications with java(script) Ewa Maciaś, emacias@google.com, 18-04- 2012 Kraków
  • 3. var jstiming = parent.jstiming; function click(m) { jstiming && jstiming.load.tick(m); } function _B_prog(pct) { if (parent['OZ_prog'] !== undefined) { parent['OZ_prog'] = pct; } }
  • 4. {} + [] = ? empty object + empty array = ?
  • 11. AJAX
  • 12. function ajaxFunction(){ var xmlHttp; try{ // Creating XMLHttpRequest object (Gecko engine, WebKit, Presto, Trident w IE>6) xmlHttp=new XMLHttpRequest(); } catch(e) { // Catches exception if JavaScript does not have XMLHttpRequest try { // Creating ActiveXObject object, for ActiveX IE console xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { // Creating ActiveXObject object, other versions of IE xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { // Show an error on case of support for XMLHttpRequest alert("Your browser does not support AJAX!"); return false; } } } return xmlHttp; }
  • 13. package com.example.foo.client; import com.google.gwt.user.client.rpc.RemoteService; public interface MyService extends RemoteService { public String myMethod(String s); }