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
Gustavo Leon
December 01, 2013
Programming
0
82
Desarrollo FrontEnd con JavaScript - S04
S04 – jQuery, Promises y $.Deferred:
- jQuery.ajax
- Promises y Deferred Object
Gustavo Leon
December 01, 2013
Tweet
Share
More Decks by Gustavo Leon
See All by Gustavo Leon
Usando Preact - Una alternativa ligera a React
hpneo
0
260
Manejando Docker containers con Ruby y backticks
hpneo
0
350
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
470
Universal Web apps con JavaScript
hpneo
0
300
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
680
Xamarin
hpneo
1
290
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
100
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
60
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
58
Other Decks in Programming
See All in Programming
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
280
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
930
A full stack side project webapp all in Kotlin (KotlinConf 2025)
dankim
0
140
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
790
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
920
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
670
“いい感じ“な定量評価を求めて - Four Keysとアウトカムの間の探求 -
nealle
2
11k
レベル1の開発生産性向上に取り組む − 日々の作業の効率化・自動化を通じた改善活動
kesoji
0
270
初学者でも今すぐできる、Claude Codeの生産性を10倍上げるTips
s4yuba
16
12k
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
460
AI時代の『改訂新版 良いコード/悪いコードで学ぶ設計入門』 / ai-good-code-bad-code
minodriven
23
9.2k
可変変数との向き合い方 $$変数名が踊り出す$$ / php conference Variable variables
gunji
0
140
Featured
See All Featured
The Invisible Side of Design
smashingmag
301
51k
How to Ace a Technical Interview
jacobian
278
23k
KATA
mclloyd
30
14k
Faster Mobile Websites
deanohume
307
31k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
7
330
Navigating Team Friction
lara
187
15k
Building Adaptive Systems
keathley
43
2.7k
Designing for humans not robots
tammielis
253
25k
Speed Design
sergeychernyshev
32
1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
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 .