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
80
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
340
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
460
Universal Web apps con JavaScript
hpneo
0
300
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
680
Xamarin
hpneo
1
280
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
100
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
59
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
57
Other Decks in Programming
See All in Programming
RubyKaigi Hack Space in Tokyo & 函館最速 "予習" 会 / RubyKaigi Hack Space in Tokyo & The Fastest Briefing of RubyKaigi 2026 in Hakodate
moznion
1
110
インターフェース設計のコツとツボ
togishima
2
410
MLOps Japan 勉強会 #52 - 特徴量を言語を越えて一貫して管理する, 『特徴量ドリブン』な MLOps の実現への試み
taniiicom
2
360
primeNumberでのRBS導入の現在 && RBS::Traceでinline RBSを拡充してみた
mnmandahalf
0
230
rbs-traceを使ってWEARで型生成を試してみた After RubyKaigi 2025〜ZOZO、ファインディ、ピクシブ〜 / tried rbs-trace on WEAR
oyamakei
0
560
TSConfigからTypeScriptの世界を覗く
planck16
2
1.2k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
1
470
SpringBootにおけるオブザーバビリティのなにか
irof
1
870
型安全なDrag and Dropの設計を考える
yudppp
5
640
ワイがおすすめする新潟の食 / 20250530phpconf-niigata-eve
kasacchiful
0
170
External SecretsのさくらProvider初期実装を担当しています
logica0419
0
200
CursorとDevinが仲間!?AI駆動で新規プロダクト開発に挑んだ3ヶ月を振り返る / A Story of New Product Development with Cursor and Devin
rkaga
5
1.9k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.3k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
180
53k
Building an army of robots
kneath
306
45k
Rails Girls Zürich Keynote
gr2m
94
13k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Cost Of JavaScript in 2023
addyosmani
49
8k
The Invisible Side of Design
smashingmag
299
50k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
105
19k
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 .