Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Desarrollo FrontEnd con JavaScript - S04
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Gustavo Leon
December 01, 2013
Programming
100
0
Share
Desarrollo FrontEnd con JavaScript - S04
S04 – jQuery, Promises y $.Deferred:
- jQuery.ajax
- Promises y Deferred Object
Gustavo Leon
December 01, 2013
More Decks by Gustavo Leon
See All by Gustavo Leon
Usando Preact - Una alternativa ligera a React
hpneo
0
320
Manejando Docker containers con Ruby y backticks
hpneo
0
390
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
530
Universal Web apps con JavaScript
hpneo
0
340
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
720
Xamarin
hpneo
1
320
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
110
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
70
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
72
Other Decks in Programming
See All in Programming
Vibe NLP for Applied NLP
inesmontani
PRO
0
390
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.3k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
130
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
200
AI-DLC Deep Dive
yuukiyo
7
1.9k
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
400
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
6.4k
RSAが破られる前に知っておきたい 耐量子計算機暗号(PQC)入門 / Intro to PQC: Preparing for the Post-RSA Era
mackey0225
3
130
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
170
Rethinking API Platform Filters
vinceamstoutz
0
11k
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
160
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
910
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
510
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
Why Our Code Smells
bkeepers
PRO
340
58k
Crafting Experiences
bethany
1
110
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
320
Technical Leadership for Architectural Decision Making
baasie
3
320
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Transcript
Desarrollo FrontEnd con JavaScript s04 – jQuery, Promises y $.Deferred
jQuery Manipulación de DOM Manejo de eventos Plugins Ajax
Manipulación de DOM
Manejo de eventos
Plugins
Ajax con jQuery
$.ajax
$.getJSON
$.Deferred Promises + jQuery
Promises • Permite asignar varios callbacks a una petición asíncrona.
• Separa la petición de los callbacks de éxito y error. • Encadena peticiones
Promises con jQuery
Promises – done
Promises – fail
Promises - then
$.when
Deferred Object • Crea funciones asíncronas. • Devuelve un promise.
• : dispara los callbacks en • : dispara los callbacks en
$.Deferred - reject • Con se disparan todos los callbacks
definidos con .